Skip to content

Commit 92a739c

Browse files
committed
Bump golang to 1.17.9
1 parent cfe6e57 commit 92a739c

Some content is hidden

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

50 files changed

+71
-15
lines changed

.circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ commands:
198198
shell: bash.exe
199199
command: |
200200
choco install -y msys2 pacman make wget --force
201-
choco install -y golang --version=1.16.15 --force
201+
choco install -y golang --version=1.17.9 --force
202202
choco install -y python3 --version=3.7.3 --force
203203
export msys2='cmd //C RefreshEnv.cmd '
204204
export msys2+='& set MSYS=winsymlinks:nativestrict '

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Install golang
2121
uses: actions/setup-go@v2
2222
with:
23-
go-version: '1.16.15'
23+
go-version: '1.17.9'
2424
- name: Build Test
2525
run: |
2626
export ALGORAND_DEADLOCK=enable

.github/workflows/reviewdog.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
- name: Install specific golang
4545
uses: actions/setup-go@v2
4646
with:
47-
go-version: '1.16.15'
47+
go-version: '1.17.9'
4848
- name: Create folders for golangci-lint
4949
run: mkdir -p cicdtmp/golangci-lint
5050
- name: Check if custom golangci-lint is already built

agreement/msgp_gen_test.go

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cmd/partitiontest_linter/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/algorand/go-algorand/cmd/partitiontest_linter
22

3-
go 1.16
3+
go 1.17
44

55
require golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1
66
require golang.org/x/sys v0.0.0-20210510120138-977fb7262007

compactcert/msgp_gen_test.go

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crypto/compactcert/msgp_gen_test.go

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crypto/merklearray/msgp_gen_test.go

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crypto/merklesignature/msgp_gen_test.go

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crypto/msgp_gen_test.go

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crypto/secp256k1/dummy.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build dummy
12
// +build dummy
23

34
// This file is part of a workaround for `go mod vendor` which won't vendor

crypto/secp256k1/libsecp256k1/contrib/dummy.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build dummy
12
// +build dummy
23

34
// Package c contains only a C file.

crypto/secp256k1/libsecp256k1/dummy.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build dummy
12
// +build dummy
23

34
// Package c contains only a C file.

crypto/secp256k1/libsecp256k1/include/dummy.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build dummy
12
// +build dummy
23

34
// Package c contains only a C file.

crypto/secp256k1/libsecp256k1/src/dummy.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build dummy
12
// +build dummy
23

34
// Package c contains only a C file.

crypto/secp256k1/libsecp256k1/src/modules/dummy.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build dummy
12
// +build dummy
23

34
// Package c contains only a C file.

crypto/secp256k1/libsecp256k1/src/modules/ecdh/dummy.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build dummy
12
// +build dummy
23

34
// Package c contains only a C file.

crypto/secp256k1/libsecp256k1/src/modules/recovery/dummy.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build dummy
12
// +build dummy
23

34
// Package c contains only a C file.

crypto/secp256k1/panic_cb.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// Use of this source code is governed by a BSD-style license that can be found in
33
// the LICENSE file.
44

5-
// +build !gofuzz
6-
// +build cgo
5+
//go:build !gofuzz && cgo
6+
// +build !gofuzz,cgo
77

88
package secp256k1
99

crypto/secp256k1/scalar_mult_cgo.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// Use of this source code is governed by a BSD-style license that can be found in
33
// the LICENSE file.
44

5-
// +build !gofuzz
6-
// +build cgo
5+
//go:build !gofuzz && cgo
6+
// +build !gofuzz,cgo
77

88
package secp256k1
99

crypto/secp256k1/scalar_mult_nocgo.go

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Use of this source code is governed by a BSD-style license that can be found in
33
// the LICENSE file.
44

5+
//go:build gofuzz || !cgo
56
// +build gofuzz !cgo
67

78
package secp256k1

crypto/secp256k1/secp256.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// Use of this source code is governed by a BSD-style license that can be found in
33
// the LICENSE file.
44

5-
// +build !gofuzz
6-
// +build cgo
5+
//go:build !gofuzz && cgo
6+
// +build !gofuzz,cgo
77

88
// Package secp256k1 wraps the bitcoin secp256k1 C library.
99
package secp256k1

daemon/algod/api/spec/v2/msgp_gen_test.go

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

data/account/msgp_gen_test.go

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

data/basics/msgp_gen_test.go

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

data/bookkeeping/msgp_gen_test.go

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

data/committee/msgp_gen_test.go

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

data/hashable/msgp_gen_test.go

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

data/transactions/msgp_gen_test.go

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go.mod

+17-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/algorand/go-algorand
22

3-
go 1.16
3+
go 1.17
44

55
require (
66
github.com/algorand/falcon v0.0.0-20220130164023-c9e1d466f123
@@ -14,12 +14,15 @@ require (
1414
github.com/aws/aws-sdk-go v1.16.5
1515
github.com/chrismcguire/gobberish v0.0.0-20150821175641-1d8adb509a0e
1616
github.com/cpuguy83/go-md2man v1.0.8 // indirect
17+
github.com/davecgh/go-spew v1.1.1 // indirect
1718
github.com/davidlazar/go-crypto v0.0.0-20170701192655-dcfb0a7ac018
1819
github.com/dchest/siphash v1.2.1
20+
github.com/dgrijalva/jwt-go v3.2.0+incompatible // indirect
1921
github.com/fatih/color v1.7.0
2022
github.com/fortytw2/leaktest v1.3.0 // indirect
2123
github.com/gen2brain/beeep v0.0.0-20180718162406-4e430518395f
2224
github.com/getkin/kin-openapi v0.22.0
25+
github.com/ghodss/yaml v1.0.0 // indirect
2326
github.com/godbus/dbus v0.0.0-20181101234600-2ff6f7ffd60f // indirect
2427
github.com/gofrs/flock v0.7.0
2528
github.com/google/go-querystring v1.0.0
@@ -28,26 +31,39 @@ require (
2831
github.com/gorilla/context v1.1.1 // indirect
2932
github.com/gorilla/mux v1.6.2
3033
github.com/inconshreveable/mousetrap v1.0.0 // indirect
34+
github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af // indirect
3135
github.com/jmoiron/sqlx v1.2.0
36+
github.com/josharian/intern v1.0.0 // indirect
3237
github.com/karalabe/usb v0.0.2
3338
github.com/labstack/echo/v4 v4.1.17
39+
github.com/labstack/gommon v0.3.0 // indirect
3440
github.com/mailru/easyjson v0.7.7 // indirect
41+
github.com/mattn/go-colorable v0.1.7 // indirect
42+
github.com/mattn/go-isatty v0.0.12 // indirect
3543
github.com/mattn/go-sqlite3 v1.10.0
3644
github.com/miekg/dns v1.1.27
3745
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e // indirect
3846
github.com/nu7hatch/gouuid v0.0.0-20131221200532-179d4d0c4d8d // indirect
3947
github.com/olivere/elastic v6.2.14+incompatible
48+
github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5 // indirect
49+
github.com/pkg/errors v0.9.1 // indirect
50+
github.com/pmezard/go-difflib v1.0.0 // indirect
4051
github.com/russross/blackfriday v1.5.2 // indirect
4152
github.com/sirupsen/logrus v1.8.1
4253
github.com/spf13/cobra v0.0.3
4354
github.com/spf13/pflag v1.0.5 // indirect
4455
github.com/stretchr/testify v1.7.1
56+
github.com/valyala/bytebufferpool v1.0.0 // indirect
57+
github.com/valyala/fasttemplate v1.2.1 // indirect
4558
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519
59+
golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f // indirect
4660
golang.org/x/sys v0.0.0-20211019181941-9d821ace8654
61+
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 // indirect
4762
golang.org/x/text v0.3.7
4863
google.golang.org/appengine v1.6.7 // indirect
4964
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f // indirect
5065
gopkg.in/sohlich/elogrus.v3 v3.0.0-20180410122755-1fa29e2f2009
5166
gopkg.in/toast.v1 v1.0.0-20180812000517-0a84660828b2 // indirect
67+
gopkg.in/yaml.v2 v2.3.0 // indirect
5268
gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776 // indirect
5369
)

ledger/ledgercore/msgp_gen_test.go

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ledger/msgp_gen_test.go

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libgoal/lockedFileLinux.go

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// You should have received a copy of the GNU Affero General Public License
1515
// along with go-algorand. If not, see <https://www.gnu.org/licenses/>.
1616

17+
//go:build linux
1718
// +build linux
1819

1920
package libgoal

libgoal/lockedFileUnix.go

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
// Support all unix system except linux
1818
// in https://github.com/golang/sys/blob/master/unix/syscall_unix.go
1919

20+
//go:build aix || darwin || dragonfly || freebsd || netbsd || openbsd || solaris
2021
// +build aix darwin dragonfly freebsd netbsd openbsd solaris
2122

2223
package libgoal

libgoal/lockedFileWindows.go

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// You should have received a copy of the GNU Affero General Public License
1515
// along with go-algorand. If not, see <https://www.gnu.org/licenses/>.
1616

17+
//go:build windows
1718
// +build windows
1819

1920
package libgoal

network/messagetracer/graphtrace.go

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// You should have received a copy of the GNU Affero General Public License
1515
// along with go-algorand. If not, see <https://www.gnu.org/licenses/>.
1616
//
17+
//go:build msgtrace
1718
// +build msgtrace
1819

1920
package messagetracer

node/msgp_gen_test.go

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nodecontrol/kmdControl_common.go

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// You should have received a copy of the GNU Affero General Public License
1515
// along with go-algorand. If not, see <https://www.gnu.org/licenses/>.
1616

17+
//go:build !windows
1718
// +build !windows
1819

1920
package nodecontrol

protocol/msgp_gen_test.go

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

protocol/test/msgp_gen_test.go

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rpcs/msgp_gen_test.go

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/buildtools/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/algorand/go-algorand/scripts/buildtools
22

3-
go 1.16
3+
go 1.17
44

55
require (
66
github.com/algorand/msgp v1.1.50

scripts/get_golang_version.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
# Our build task-runner `mule` will refer to this script and will automatically
1212
# build a new image whenever the version number has been changed.
1313

14-
BUILD=1.16.15
15-
MIN=1.16
16-
GO_MOD_SUPPORT=1.16
14+
BUILD=1.17.9
15+
MIN=1.17
16+
GO_MOD_SUPPORT=1.17
1717

1818
if [ "$1" = all ]
1919
then

tools/network/dnssec/config_unix.go

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// You should have received a copy of the GNU Affero General Public License
1515
// along with go-algorand. If not, see <https://www.gnu.org/licenses/>.
1616

17+
//go:build !windows
1718
// +build !windows
1819

1920
package dnssec

tools/network/dnssec/config_unix_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// You should have received a copy of the GNU Affero General Public License
1515
// along with go-algorand. If not, see <https://www.gnu.org/licenses/>.
1616

17+
//go:build !windows
1718
// +build !windows
1819

1920
package dnssec

tools/network/dnssec/config_windows.go

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// You should have received a copy of the GNU Affero General Public License
1515
// along with go-algorand. If not, see <https://www.gnu.org/licenses/>.
1616

17+
//go:build windows
1718
// +build windows
1819

1920
package dnssec

util/process_common.go

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// You should have received a copy of the GNU Affero General Public License
1515
// along with go-algorand. If not, see <https://www.gnu.org/licenses/>.
1616

17+
//go:build !windows
1718
// +build !windows
1819

1920
package util

util/process_windows.go

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// You should have received a copy of the GNU Affero General Public License
1515
// along with go-algorand. If not, see <https://www.gnu.org/licenses/>.
1616

17+
//go:build windows
1718
// +build windows
1819

1920
package util

util/sleep.go

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// You should have received a copy of the GNU Affero General Public License
1515
// along with go-algorand. If not, see <https://www.gnu.org/licenses/>.
1616

17+
//go:build !linux
1718
// +build !linux
1819

1920
package util

util/util.go

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// You should have received a copy of the GNU Affero General Public License
1515
// along with go-algorand. If not, see <https://www.gnu.org/licenses/>.
1616

17+
//go:build !windows
1718
// +build !windows
1819

1920
package util

0 commit comments

Comments
 (0)