Skip to content

Commit dbdbc70

Browse files
committed
update to go 1.22 plus
* update vendored packages * move internal packages to internal * replace mocks with stubs
1 parent 88d7459 commit dbdbc70

File tree

1,202 files changed

+110119
-35035
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,202 files changed

+110119
-35035
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Set up Go
1515
uses: actions/setup-go@v3
1616
with:
17-
go-version: '1.21'
17+
go-version: '1.22'
1818
- name: golangci-lint
1919
uses: golangci/golangci-lint-action@v3
2020
with:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Set up Go
1616
uses: actions/setup-go@v3
1717
with:
18-
go-version: '1.21'
18+
go-version: '1.22'
1919
- name: golangci-lint
2020
uses: golangci/golangci-lint-action@v3
2121
with:

Makefile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ target:
2525

2626
.PHONY: format
2727
format:
28-
@echo 'goimports ./...'
29-
@goimports -w -local github.com/tomcz/s3backup $(shell find . -type f -name '*.go' -not -path './vendor/*')
28+
goimports -w -local github.com/tomcz/s3backup cmd/ internal/ tools/
3029

3130
.PHONY: lint
3231
lint:
@@ -38,7 +37,7 @@ test:
3837

3938
.PHONY: generate
4039
generate:
41-
go generate ./client/...
40+
go generate ./internal/...
4241

4342
.PHONY: compile
4443
compile: target
@@ -57,5 +56,5 @@ cross-compile:
5756

5857
.PHONY: vendor
5958
vendor:
60-
go mod tidy -compat=1.20
59+
go mod tidy
6160
go mod vendor

client/client_test.go

Lines changed: 0 additions & 96 deletions
This file was deleted.

client/crypto/rsa_test.go

Lines changed: 0 additions & 49 deletions
This file was deleted.

client/mocks/cipher.go

Lines changed: 0 additions & 62 deletions
This file was deleted.

client/mocks/hash.go

Lines changed: 0 additions & 63 deletions
This file was deleted.

client/mocks/store.go

Lines changed: 0 additions & 77 deletions
This file was deleted.

0 commit comments

Comments
 (0)