ci: bump to go 1.19 (#330)

* Bump CI to Go 1.19
* Update golang/go edwards25519 test
* Apply formatting to printer stubs output (to get correct comment formatting)
* Bump gofumpt version
This commit is contained in:
Michael McLoughlin
2022-09-05 22:15:01 -07:00
committed by GitHub
parent e788b7675f
commit 429cf3cdbf
15 changed files with 43307 additions and 37038 deletions

View File

@@ -43,8 +43,9 @@ func encodeBlockAsm12BAvx(dst []byte, src []byte) int
// emitLiteral writes a literal chunk and returns the number of bytes written.
//
// It assumes that:
// dst is long enough to hold the encoded bytes
// 0 <= len(lit) && len(lit) <= math.MaxUint32
//
// dst is long enough to hold the encoded bytes
// 0 <= len(lit) && len(lit) <= math.MaxUint32
//
//go:noescape
func emitLiteral(dst []byte, lit []byte) int
@@ -52,8 +53,9 @@ func emitLiteral(dst []byte, lit []byte) int
// emitLiteralAvx writes a literal chunk and returns the number of bytes written.
//
// It assumes that:
// dst is long enough to hold the encoded bytes
// 0 <= len(lit) && len(lit) <= math.MaxUint32
//
// dst is long enough to hold the encoded bytes
// 0 <= len(lit) && len(lit) <= math.MaxUint32
//
//go:noescape
func emitLiteralAvx(dst []byte, lit []byte) int
@@ -67,9 +69,10 @@ func emitRepeat(dst []byte, offset int, length int) int
// emitCopy writes a copy chunk and returns the number of bytes written.
//
// It assumes that:
// dst is long enough to hold the encoded bytes
// 1 <= offset && offset <= math.MaxUint32
// 4 <= length && length <= 1 << 24
//
// dst is long enough to hold the encoded bytes
// 1 <= offset && offset <= math.MaxUint32
// 4 <= length && length <= 1 << 24
//
//go:noescape
func emitCopy(dst []byte, offset int, length int) int
@@ -77,7 +80,8 @@ func emitCopy(dst []byte, offset int, length int) int
// matchLen returns how many bytes match in a and b
//
// It assumes that:
// len(a) <= len(b)
//
// len(a) <= len(b)
//
//go:noescape
func matchLen(a []byte, b []byte) int

View File

@@ -102,7 +102,7 @@ func GenerateWorkflow(s *thirdparty.Suite) ([]byte, error) {
g.Linef("- name: Install Go")
g.Linef(" uses: actions/setup-go@f6164bd8c8acb4a71fb2791a8b6c4024ff038dab # v3.0.0")
g.Linef(" with:")
g.Linef(" go-version: 1.18.x")
g.Linef(" go-version: 1.19.x")
g.Linef(" check-latest: true")
// Checkout avo.

View File

@@ -749,10 +749,10 @@
"stars": 103424
},
"default_branch": "master",
"version": "go1.17.3",
"version": "go1.19",
"packages": [
{
"module": "src/crypto/ed25519/internal/edwards25519/field/_asm/go.mod",
"module": "src/crypto/internal/edwards25519/field/_asm/go.mod",
"setup": [
{
"name": "Compile Go Toolchain",
@@ -764,7 +764,7 @@
],
"generate": [
{
"dir": "src/crypto/ed25519/internal/edwards25519/field/_asm",
"dir": "src/crypto/internal/edwards25519/field/_asm",
"commands": [
"go generate -v -x"
]