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

the package golang.org/x/sys v0.10.0 require go version is 1.17, but gomod just require 1.12 ? #1016

Open
Charlie17Li opened this issue Sep 9, 2024 · 0 comments

Comments

@Charlie17Li
Copy link

Introduction

I find that golang.org/x/sys v0.10.0 require go version is 1.17, but gomod just requires 1.12. My go version is 1.16, so I failed to build the project.

/home/admin/go/pkg/mod/golang.org/x/[email protected]/unix/mremap.go:33:10: undefined: unsafe.Slice
/home/admin/go/pkg/mod/golang.org/x/[email protected]/unix/syscall.go:83:16: undefined: unsafe.Slice
/home/admin/go/pkg/mod/golang.org/x/[email protected]/unix/syscall_linux.go:1018:20: undefined: unsafe.Slice
/home/admin/go/pkg/mod/golang.org/x/[email protected]/unix/syscall_linux.go:2316:9: undefined: unsafe.Slice
/home/admin/go/pkg/mod/golang.org/x/[email protected]/unix/syscall_unix.go:118:7: undefined: unsafe.Slice
/home/admin/go/pkg/mod/golang.org/x/[email protected]/unix/sysvshm_unix.go:33:7: undefined: unsafe.Slice

netlink/go.mod

Lines 1 to 8 in 65a253d

module github.com/vishvananda/netlink
go 1.12
require (
github.com/vishvananda/netns v0.0.4
golang.org/x/sys v0.10.0
)

Question

If we can downgrade the version of golang.org/x/sys or change the go version from 1.12 to 1.17?

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

1 participant