Skip to content

Commit

Permalink
upgrade to go1.20 and remove useless generate files
Browse files Browse the repository at this point in the history
Signed-off-by: Loong <loong.dai@intel.com>
  • Loading branch information
daixiang0 committed Feb 21, 2023
1 parent c19c1aa commit c444ddc
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 863 deletions.
7 changes: 2 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.PHONY: clean generate test build
.PHONY: clean test build

BIN_OUTPUT := $(if $(filter $(shell go env GOOS), windows), dist/gci.exe, dist/gci)

default: clean generate test build
default: clean test build

clean:
@echo BIN_OUTPUT: ${BIN_OUTPUT}
Expand All @@ -13,6 +13,3 @@ build: clean

test: clean
@go test -v -count=1 -cover ./...

generate:
@go generate ./...
20 changes: 9 additions & 11 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,26 +1,24 @@
module github.com/daixiang0/gci

go 1.18
go 1.20

require (
github.com/hexops/gotextdiff v1.0.3
github.com/spf13/cobra v1.3.0
github.com/stretchr/testify v1.8.0
go.uber.org/zap v1.17.0
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
golang.org/x/tools v0.1.5
github.com/spf13/cobra v1.6.1
github.com/stretchr/testify v1.8.1
go.uber.org/zap v1.24.0
golang.org/x/sync v0.1.0
golang.org/x/tools v0.6.0
gopkg.in/yaml.v3 v3.0.1
)

require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/inconshreveable/mousetrap v1.0.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
go.uber.org/atomic v1.7.0 // indirect
go.uber.org/multierr v1.6.0 // indirect
golang.org/x/mod v0.5.0 // indirect
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e // indirect
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
golang.org/x/mod v0.8.0 // indirect
golang.org/x/sys v0.5.0 // indirect
)
Loading

0 comments on commit c444ddc

Please sign in to comment.