Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Current minimum required go version is at least 1.20 #277

Open
RJVB opened this issue Jan 4, 2024 · 4 comments
Open

Current minimum required go version is at least 1.20 #277

RJVB opened this issue Jan 4, 2024 · 4 comments

Comments

@RJVB
Copy link

RJVB commented Jan 4, 2024

* Go >= 1.16

Building with go 1.17.13:

> go install github.com/foxboron/sbctl/cmd/sbctl@latest
go: downloading github.com/foxboron/sbctl v0.0.0-20231223220248-ee7cf4a33c6f
go: downloading github.com/foxboron/go-uefi v0.0.0-20230808201820-18b9ba9cd4c3
go: downloading github.com/spf13/afero v1.9.3
go: downloading github.com/spf13/cobra v1.1.3
go: downloading github.com/google/go-attestation v0.3.3-0.20210901195502-505680f536da
go: downloading github.com/google/uuid v1.3.0
go: downloading golang.org/x/sys v0.5.0
go: downloading github.com/fatih/color v1.13.0
go: downloading golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1
go: downloading golang.org/x/text v0.7.0
go: downloading github.com/pkg/errors v0.9.1
go: downloading github.com/spf13/pflag v1.0.5
go: downloading github.com/mattn/go-colorable v0.1.12
go: downloading github.com/mattn/go-isatty v0.0.14
go: downloading github.com/google/certificate-transparency-go v1.1.2
go: downloading github.com/google/go-tpm v0.3.2
go: downloading github.com/google/go-tspi v0.3.0
go: downloading golang.org/x/crypto v0.6.0
# golang.org/x/exp/constraints
../../../go/pkg/mod/golang.org/x/[email protected]/constraints/constraints.go:13:2: syntax error: unexpected ~, expecting method or interface name
../../../go/pkg/mod/golang.org/x/[email protected]/constraints/constraints.go:20:2: syntax error: unexpected ~, expecting method or interface name
../../../go/pkg/mod/golang.org/x/[email protected]/constraints/constraints.go:27:9: syntax error: unexpected |, expecting semicolon or newline or }
../../../go/pkg/mod/golang.org/x/[email protected]/constraints/constraints.go:34:2: syntax error: unexpected ~, expecting method or interface name
../../../go/pkg/mod/golang.org/x/[email protected]/constraints/constraints.go:41:2: syntax error: unexpected ~, expecting method or interface name
../../../go/pkg/mod/golang.org/x/[email protected]/constraints/constraints.go:49:10: syntax error: unexpected |, expecting semicolon or newline or }
note: module requires Go 1.20
Exit 2
@Foxboron
Copy link
Owner

Foxboron commented Jan 4, 2024

Should probably be changed, but please defer to https://github.com/Foxboron/sbctl/blob/master/go.mod#L3 for the supported version.

@RJVB
Copy link
Author

RJVB commented Jan 4, 2024 via email

@hueychen27
Copy link

Install golang-1.21-go That fixed the issue for me

@RJVB
Copy link
Author

RJVB commented Jan 5, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants