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

can't go install right now - dependancy failure (because golang things) #47

Open
dreamcat4 opened this issue Jan 8, 2022 · 2 comments

Comments

@dreamcat4
Copy link

dreamcat4 commented Jan 8, 2022

⏚ [id:~] $ go install github.com/solo-io/bumblebee/bee
go install: version is required when current directory is not in a module
	Try 'go install github.com/solo-io/bumblebee/bee@latest' to install the latest version
⏚ [id:~] 1 $ go install github.com/solo-io/bumblebee/bee@latest
go install: github.com/solo-io/bumblebee/bee@latest (in github.com/solo-io/[email protected]):
	The go.mod file for the module providing named packages contains one or
	more replace directives. It must not contain directives that would cause
	it to be interpreted differently than if it were the main module.
⏚ θ61° [id:~] 1 $ 

because the only 1 line override in your deps here (for ebpf):

https://github.com/solo-io/bumblebee/blob/main/go.mod#L90

This problem I have seen it before... is more concisely put by these fellow developers:

https://hacker-news.news/post/27630625

dear me

@lgadban
Copy link
Collaborator

lgadban commented Jan 8, 2022

Thanks for raising this issue. I found another good (and lengthy) thread that goes into the details on this problem.

Seems like we'll need to figure out our plan with the replace directive to properly solve this.

In the short-term, you should be able to use the install script, or if you aren't a fan of scripts like that, we do have the pre-built binaries on the GH releases, e.g. https://github.com/solo-io/bumblebee/releases/tag/v0.0.9. Also could build via go build.

We'll update this thread once we have a plan, so thanks again for opening!

@lgadban
Copy link
Collaborator

lgadban commented Jan 13, 2022

We've updated the README to have steps for using go install if you have cloned the repo: https://github.com/solo-io/bumblebee#using-go

We plan on resolving our use of replace and will keep this issue open until that gets done.

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