Skip to content

Commit

Permalink
Reduce x/crypto and x/sys versions to match Go 1.20
Browse files Browse the repository at this point in the history
CIRCL does not necessarily depend on newer x/crypto and x/sys versions.
Lower the version requirements to match Go 1.20.2, this avoids the need
to upgrade stdlib dependencies when integrating circl.

While at it, bump golangci-lint and drop Go 1.18 which is no longer
supported by Go developers.
  • Loading branch information
Lekensteyn committed Mar 9, 2023
1 parent 6210db7 commit 278354d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci-actions.yml
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
GOVER: ['1.20', '1.19', '1.18']
GOVER: ['1.20', '1.19']
steps:
- name: Setup Go-${{ matrix.GOVER }}
uses: actions/setup-go@v3
Expand All @@ -24,7 +24,7 @@ jobs:
- name: Linting
uses: golangci/golangci-lint-action@v3
with:
version: v1.51
version: v1.51.2
args: --config=./.etc/golangci.yml ./...
- name: Check shadowing
run: |
Expand Down
6 changes: 3 additions & 3 deletions go.mod
@@ -1,9 +1,9 @@
module github.com/cloudflare/circl

go 1.18
go 1.19

require (
github.com/bwesterb/go-ristretto v1.2.2
golang.org/x/crypto v0.7.0
golang.org/x/sys v0.6.0
golang.org/x/crypto v0.3.1-0.20221117191849-2c476679df9a
golang.org/x/sys v0.3.0
)
8 changes: 4 additions & 4 deletions go.sum
@@ -1,6 +1,6 @@
github.com/bwesterb/go-ristretto v1.2.2 h1:S2C0mmSjCLS3H9+zfXoIoKzl+cOncvBvt6pE+zTm5Ms=
github.com/bwesterb/go-ristretto v1.2.2/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7NFEuV9ekS419A0=
golang.org/x/crypto v0.7.0 h1:AvwMYaRytfdeVt3u6mLaxYtErKYjxA2OXjJ1HHq6t3A=
golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU=
golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ=
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/crypto v0.3.1-0.20221117191849-2c476679df9a h1:diz9pEYuTIuLMJLs3rGDkeaTsNyRs6duYdFyPAxzE/U=
golang.org/x/crypto v0.3.1-0.20221117191849-2c476679df9a/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4=
golang.org/x/sys v0.3.0 h1:w8ZOecv6NaNa/zC8944JTU3vz4u6Lagfk4RPQxv92NQ=
golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=

0 comments on commit 278354d

Please sign in to comment.