solo-io / bumblebee

Get eBPF programs running from the cloud to the kernel in 1 line of bash
Apache License 2.0
1.25k stars 77 forks source link

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

Open dreamcat4 opened 2 years ago

dreamcat4 commented 2 years ago
⏚ [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/bumblebee@v0.0.9):
    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 commented 2 years ago

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 commented 2 years ago

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.