Skip to content

Commit db1e424

Browse files
committed
Require Go version 1.17
updating go.mod, build constraints, GitHub workflow
1 parent c2fc8bd commit db1e424

File tree

14 files changed

+47
-34
lines changed

14 files changed

+47
-34
lines changed

.github/workflows/go.yml

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,12 @@ jobs:
55
name: Build
66
runs-on: ubuntu-latest
77
steps:
8-
9-
- name: Set up Go 1.15
10-
uses: actions/setup-go@v2
8+
- uses: actions/checkout@v2
9+
- uses: actions/setup-go@v2
1110
with:
12-
go-version: 1.15
13-
id: go
14-
15-
- name: Check out code into the Go module directory
16-
uses: actions/checkout@v2
17-
11+
go-version: '^1.17.3'
1812
- name: Get dependencies
19-
run: |
20-
go get -v -t -d ./...
21-
if [ -f Gopkg.toml ]; then
22-
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
23-
dep ensure
24-
fi
25-
13+
run: go get -v -t -d ./...
2614
- name: Build
2715
run: go build -v ./...
2816

@@ -33,7 +21,7 @@ jobs:
3321
- uses: actions/checkout@v2
3422
- uses: actions/setup-go@v2
3523
with:
36-
go-version: 1.15
24+
go-version: '^1.17.3'
3725
- name: Get dependencies
3826
run: go get -v -t -d ./...
3927
- name: Run tests and generate coverage report
@@ -50,7 +38,7 @@ jobs:
5038
- uses: actions/checkout@v2
5139
- uses: actions/setup-go@v2
5240
with:
53-
go-version: 1.15
41+
go-version: '^1.17.3'
5442
- name: Get dependencies
5543
run: go get -v -t -d ./...
5644
- name: Change float type to float64
@@ -64,7 +52,7 @@ jobs:
6452
steps:
6553
- uses: actions/setup-go@v2
6654
with:
67-
go-version: 1.15
55+
go-version: '^1.17.3'
6856
- name: Get dependencies
6957
run: go get -u golang.org/x/lint/golint github.com/fzipp/gocyclo/cmd/gocyclo
7058
- uses: actions/checkout@v2

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

88
## [Unreleased]
99
### Changed
10+
- Require Go version `1.17`.
1011
- Updating initialization of BatchNorm normalization, making training more
1112
stable at the beginning. Initializing the weight matrix with a small nonzero
1213
value improves the behaviour of gradients and stabilizes training.

go.mod

Lines changed: 28 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,48 @@
11
module github.com/nlpodyssey/spago
22

3-
go 1.15
3+
go 1.17
44

55
require (
6-
github.com/DataDog/zstd v1.4.8 // indirect
76
github.com/awalterschulze/gographviz v2.0.3+incompatible
8-
github.com/cpuguy83/go-md2man/v2 v2.0.0 // indirect
97
github.com/dgraph-io/badger/v3 v3.2011.1
10-
github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 // indirect
118
github.com/dustin/go-humanize v1.0.0
12-
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
13-
github.com/golang/snappy v0.0.3 // indirect
14-
github.com/google/flatbuffers v2.0.0+incompatible // indirect
15-
github.com/gosuri/uilive v0.0.4 // indirect
169
github.com/gosuri/uiprogress v0.0.1
1710
github.com/lithammer/fuzzysearch v1.1.2
18-
github.com/lunixbochs/vtclean v1.0.0 // indirect
1911
github.com/manifoldco/promptui v0.8.0
20-
github.com/mattn/go-colorable v0.1.8 // indirect
2112
github.com/nlpodyssey/gopickle v0.1.0
2213
github.com/nlpodyssey/gotokenizers v0.2.0
23-
github.com/russross/blackfriday/v2 v2.1.0 // indirect
2414
github.com/stretchr/testify v1.7.0
2515
github.com/urfave/cli/v2 v2.3.0
26-
go.opencensus.io v0.23.0 // indirect
2716
golang.org/x/exp v0.0.0-20210513165259-bd7cc9f9ec66
28-
golang.org/x/net v0.0.0-20210510120150-4163338589ed // indirect
29-
golang.org/x/sys v0.0.0-20210511113859-b0526f3d8744 // indirect
3017
golang.org/x/text v0.3.6
31-
google.golang.org/genproto v0.0.0-20210510173355-fb37daa5cd7a // indirect
3218
google.golang.org/grpc v1.37.1
3319
google.golang.org/protobuf v1.26.0
3420
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b
3521
)
22+
23+
require (
24+
github.com/DataDog/zstd v1.4.8 // indirect
25+
github.com/cespare/xxhash v1.1.0 // indirect
26+
github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e // indirect
27+
github.com/cpuguy83/go-md2man/v2 v2.0.0 // indirect
28+
github.com/davecgh/go-spew v1.1.1 // indirect
29+
github.com/dgraph-io/ristretto v0.0.4-0.20210122082011-bb5d392ed82d // indirect
30+
github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 // indirect
31+
github.com/dlclark/regexp2 v1.4.0 // indirect
32+
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
33+
github.com/golang/protobuf v1.5.2 // indirect
34+
github.com/golang/snappy v0.0.3 // indirect
35+
github.com/google/flatbuffers v2.0.0+incompatible // indirect
36+
github.com/gosuri/uilive v0.0.4 // indirect
37+
github.com/juju/ansiterm v0.0.0-20180109212912-720a0952cc2a // indirect
38+
github.com/lunixbochs/vtclean v1.0.0 // indirect
39+
github.com/mattn/go-colorable v0.1.8 // indirect
40+
github.com/mattn/go-isatty v0.0.12 // indirect
41+
github.com/pkg/errors v0.9.1 // indirect
42+
github.com/pmezard/go-difflib v1.0.0 // indirect
43+
github.com/russross/blackfriday/v2 v2.1.0 // indirect
44+
go.opencensus.io v0.23.0 // indirect
45+
golang.org/x/net v0.0.0-20210510120150-4163338589ed // indirect
46+
golang.org/x/sys v0.0.0-20210511113859-b0526f3d8744 // indirect
47+
google.golang.org/genproto v0.0.0-20210510173355-fb37daa5cd7a // indirect
48+
)

pkg/mat32/internal/asm/f32/ge_amd64.go

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

5+
//go:build !noasm && !gccgo && !safe
56
// +build !noasm,!gccgo,!safe
67

78
package f32

pkg/mat32/internal/asm/f32/ge_noasm.go

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

5+
//go:build !amd64 || noasm || gccgo || safe
56
// +build !amd64 noasm gccgo safe
67

78
package f32

pkg/mat32/internal/asm/f32/stubs_amd64.go

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

5+
//go:build !noasm && !gccgo && !safe
56
// +build !noasm,!gccgo,!safe
67

78
package f32

pkg/mat32/internal/asm/f32/stubs_noasm.go

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

5+
//go:build !amd64 || noasm || gccgo || safe
56
// +build !amd64 noasm gccgo safe
67

78
package f32

pkg/mat64/internal/asm/f64/axpy.go

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

5+
//go:build !amd64 || noasm || appengine || safe
56
// +build !amd64 noasm appengine safe
67

78
package f64

pkg/mat64/internal/asm/f64/dot.go

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

5+
//go:build !amd64 || noasm || appengine || safe
56
// +build !amd64 noasm appengine safe
67

78
package f64

pkg/mat64/internal/asm/f64/ge_amd64.go

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

5+
//go:build !noasm && !appengine && !safe
56
// +build !noasm,!appengine,!safe
67

78
package f64

0 commit comments

Comments
 (0)