forked from openconfig/featureprofiles
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update go version from 1.19 to 1.21 (openconfig#2270)
* update go version from 1.19 to 1.21 * update seed which is deprecated * removing call to random seed * Free up space for staticcheck (openconfig#2279) --------- Co-authored-by: Brandon Stoll <[email protected]>
- Loading branch information
Showing
6 changed files
with
50 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,9 +15,9 @@ jobs: | |
- name: Set up Go | ||
uses: actions/[email protected] | ||
with: | ||
go-version: 1.19.x | ||
go-version: 1.21.x | ||
- name: Cache | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/go/pkg/mod | ||
|
@@ -33,9 +33,9 @@ jobs: | |
- name: Set up Go | ||
uses: actions/[email protected] | ||
with: | ||
go-version: 1.19.x | ||
go-version: 1.21.x | ||
- name: Cache | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/go/pkg/mod | ||
|
@@ -58,11 +58,11 @@ jobs: | |
- name: Install go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: '1.19' | ||
go-version: '1.21' | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Cache | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/go/pkg/mod | ||
|
@@ -103,4 +103,10 @@ jobs: | |
- name: Get staticcheck | ||
run: go install honnef.co/go/tools/cmd/staticcheck@latest | ||
- name: Run staticcheck | ||
run: GOGC=30 staticcheck ./... | ||
run: | | ||
# staticcheck requires a lot of free disk space in /tmp. Free up worker | ||
# space by removing unnecessary tooling. | ||
sudo rm -rf /usr/share/dotnet | ||
sudo rm -rf /usr/local/lib/android | ||
sudo rm -rf /opt/hostedtoolcache/CodeQL | ||
GOGC=30 staticcheck ./... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,9 +20,9 @@ jobs: | |
- name: Set up Go | ||
uses: actions/[email protected] | ||
with: | ||
go-version: 1.19.x | ||
go-version: 1.21.x | ||
- name: Cache | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/go/pkg/mod | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module github.com/openconfig/featureprofiles | ||
|
||
go 1.19 | ||
go 1.21 | ||
|
||
require ( | ||
cloud.google.com/go/pubsub v1.33.0 | ||
|
Oops, something went wrong.