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

Upgrade sys package for Darwin with go v1.18 #28

Merged

Conversation

nikukyugamer
Copy link
Contributor

gomi is a great useful product, thank you.

Problem

On Darwin with Go v1.18.0, $ go build is failed as below.

$ go build
# golang.org/x/sys/unix
/Users/foo/go/1.18.0/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_amd64.go:28:3: //go:linkname must refer to declared function or variable
/Users/foo/go/1.18.0/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_amd64.go:43:3: //go:linkname must refer to declared function or variable
/Users/foo/go/1.18.0/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_amd64.go:59:3: //go:linkname must refer to declared function or variable
/Users/foo/go/1.18.0/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_amd64.go:75:3: //go:linkname must refer to declared function or variable
/Users/foo/go/1.18.0/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_amd64.go:90:3: //go:linkname must refer to declared function or variable
/Users/foo/go/1.18.0/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_amd64.go:105:3: //go:linkname must refer to declared function or variable
/Users/foo/go/1.18.0/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_amd64.go:121:3: //go:linkname must refer to declared function or variable
/Users/foo/go/1.18.0/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_amd64.go:136:3: //go:linkname must refer to declared function or variable
/Users/foo/go/1.18.0/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_amd64.go:151:3: //go:linkname must refer to declared function or variable
/Users/foo/go/1.18.0/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_amd64.go:166:3: //go:linkname must refer to declared function or variable
/Users/foo/go/1.18.0/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_amd64.go:166:3: too many errors

How to fix

  • Upgrade golang.org/x/sys
$ go get golang.org/x/sys
go: upgraded golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e => v0.0.0-20220408201424-a24fb2fb8a0f

Check

$ go build

$ ./gomi -h
Usage:
  gomi [OPTIONS]

Note

Ubuntu or less than v1.18 has no problem.

@babarot babarot merged commit d214a52 into babarot:master Apr 17, 2022
@babarot
Copy link
Owner

babarot commented Apr 17, 2022

Thank you!

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

Successfully merging this pull request may close these issues.

2 participants