Skip to content

Commit

Permalink
Update Go to 1.16
Browse files Browse the repository at this point in the history
  • Loading branch information
ymmt2005 committed Mar 16, 2021
1 parent 44f7845 commit 4c026e6
Show file tree
Hide file tree
Showing 5 changed files with 573 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: 1.15
go-version: 1.16
- run: make test
- run: make install GOBIN=/tmp/
- name: Upload binaries for setup-hw
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@
\#*#
.*.swp
/.vscode
/go.sum
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ $(GENERATED): $(GENERATE_SRC) pkg/render-rules/main.go
go generate ./redfish/...

setup:
cd /tmp; env GOFLAGS= GO111MODULE=on go get golang.org/x/tools/cmd/goimports
cd /tmp; env GOFLAGS= GO111MODULE=on go get honnef.co/go/tools/cmd/staticcheck
env GOFLAGS= go install golang.org/x/tools/cmd/goimports@latest
env GOFLAGS= go install honnef.co/go/tools/cmd/staticcheck@latest

test: setup generate
test -z "$$(gofmt -s -l . | tee /dev/stderr)"
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
module github.com/cybozu-go/setup-hw

go 1.16

require (
github.com/cybozu-go/log v1.6.0
github.com/cybozu-go/well v1.10.0
Expand All @@ -14,5 +16,3 @@ require (
gopkg.in/ini.v1 v1.62.0
sigs.k8s.io/yaml v1.2.0
)

go 1.13
Loading

0 comments on commit 4c026e6

Please sign in to comment.