Skip to content

Commit

Permalink
update to go 1.22 plus
Browse files Browse the repository at this point in the history
* update vendored packages
* move internal packages to internal
* replace mocks with stubs
  • Loading branch information
tomcz committed Jul 26, 2024
1 parent 88d7459 commit dbdbc70
Show file tree
Hide file tree
Showing 1,202 changed files with 110,119 additions and 35,035 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.21'
go-version: '1.22'
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.21'
go-version: '1.22'
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
Expand Down
7 changes: 3 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ target:

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

.PHONY: lint
lint:
Expand All @@ -38,7 +37,7 @@ test:

.PHONY: generate
generate:
go generate ./client/...
go generate ./internal/...

.PHONY: compile
compile: target
Expand All @@ -57,5 +56,5 @@ cross-compile:

.PHONY: vendor
vendor:
go mod tidy -compat=1.20
go mod tidy
go mod vendor
96 changes: 0 additions & 96 deletions client/client_test.go

This file was deleted.

49 changes: 0 additions & 49 deletions client/crypto/rsa_test.go

This file was deleted.

62 changes: 0 additions & 62 deletions client/mocks/cipher.go

This file was deleted.

63 changes: 0 additions & 63 deletions client/mocks/hash.go

This file was deleted.

77 changes: 0 additions & 77 deletions client/mocks/store.go

This file was deleted.

Loading

0 comments on commit dbdbc70

Please sign in to comment.