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

go:linkname must refer to declared function or variable #7

Closed
mozey opened this issue Feb 3, 2023 · 2 comments
Closed

go:linkname must refer to declared function or variable #7

mozey opened this issue Feb 3, 2023 · 2 comments

Comments

@mozey
Copy link
Owner

mozey commented Feb 3, 2023

When trying to install the watcher cmd

go install github.com/mozey/watcher

it errors with lines like the following

go/src/github.com/mozey/watcher/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go... go:linkname must refer to declared function or variable
@mozey
Copy link
Owner Author

mozey commented Feb 3, 2023

See this comment, and solution here: update the golang.org/x/sys package and vendor

go get -u golang.org/x/sys
go mod vendor
go mod verify

Fixed in dcc1a2c

@mozey
Copy link
Owner Author

mozey commented Feb 3, 2023

@mozey mozey closed this as completed Feb 3, 2023
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