-
Notifications
You must be signed in to change notification settings - Fork 29
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
Initial install in new env #88
Comments
Hmm, interesting. No Let's bring similar details here:
That's fine, as you already should have the binary installed on your system, so you can use it. Use bingo to manage bingo only if you would like to pin version of it to the system (good practice). Let's update the installation method to On my side with Go 1.16, I can't reproduce any of those errors:
(Fresh env) |
Interesting so I think there were a few things going on specific to the project I was working on (part of the reason I want to use bingo :-), as I was just able to successfully install command line dependencies on a test project I spun up to repro this. The only real deviation from the docs I made was using From my workstation:
Then after using cobra to build a cli scaffold, I mounted that code into a blank
This is great! and I think understanding it this way (treating The only remaining question I have is around using
This appears to be a new behavior in go 1.16 and appears to have been patched in Thanks! |
I think the documentation should give you clue now: go build -mod=mod -modfile .bingo/<tool>.mod -o=$GOBIN/<tool>-<version>
|
First off, thank you for this tool!
I was curious what the best practice is for installing the initial
bingo
binary for a project with an existing bingo configuration?My first thought (and the process described in the docs) was to just
go get github.com/bwplotka/bingo
in my project. This of course works, but subsequentgo mod tidy
runs (somewhat obviously) remove bingo from my project'sgo.mod
file since it's not actually used in code anywhere.I saw in the docs that you can use bingo to manage bingo itself :-) but when I
go build
using the module file in my project I get:Which I think is the same issue mentioned here, as I am also using go 1.16.
In the interim I've been installing bingo as an initial OS dependency w/ the recently added
go install
tool which works without issue and avoids adding extra entries to mygo.mod
file:Apologies in advance if this is just a duplicate GitHub issue, but was wondering if I was maybe just thinking about this all wrong, and if so, if there's a documentation improvement I could submit to assist others.
Thanks!
The text was updated successfully, but these errors were encountered: