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

Errors: "github.com/hashicorp/go-version" imported as fsnotify and not used ; undefined: version #45

Closed
yurivict opened this issue Jun 25, 2023 · 1 comment

Comments

@yurivict
Copy link

Build of https://github.com/zmap/zdns fails in liip/sheriff:

github.com/liip/sheriff
# github.com/liip/sheriff
vendor/github.com/liip/sheriff/sheriff.go:10:2: "github.com/hashicorp/go-version" imported as fsnotify and not used
vendor/github.com/liip/sheriff/sheriff.go:25:14: undefined: version
vendor/github.com/liip/sheriff/sheriff.go:158:26: undefined: version
vendor/github.com/liip/sheriff/sheriff.go:168:26: undefined: version
*** Error code 1

FreeBSD 13.2

@mweibel
Copy link
Collaborator

mweibel commented Jun 26, 2023

hmm, please double check if that is really an issue of liip/sheriff. If you look at the mentioned line it doesn't import version as fsnotify (why would we import version as fsnotify anyway):

"github.com/hashicorp/go-version"

I also quickly cloned zdns and could build without any issues. Maybe your vendor directory is messed up? Try deleting it and try again maybe.

Closing since not a liip/sheriff issue.

@mweibel mweibel closed this as completed Jun 26, 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

2 participants