-
Notifications
You must be signed in to change notification settings - Fork 42
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
replace bingo with go 1.17 go run
commands
#314
Comments
cc @nacx |
this is good to know this, thanks for raising here 😄 |
It is possible that when we use this, we can avoid needing cygwin bash anymore. So, possibly worth revisiting the github action that currently installs cygwin-bash and overrides the shell in order to translate paths so bingo's Variables.mk doesn't die (#325) |
This uses versioned syntax of `go run` brought to us in 1.17 https://golang.org/doc/go1.17 In doing so, we can remove the complexity of bingo and also simplify its impact on windows. Fixes #314 Signed-off-by: Adrian Cole <[email protected]>
This uses versioned syntax of `go run` brought to us in 1.17 https://golang.org/doc/go1.17 In doing so, we can remove the complexity of bingo and also simplify its impact on windows. Fixes #314 Signed-off-by: Adrian Cole <[email protected]> Co-authored-by: Takeshi Yoneda <[email protected]>
When I was trying to upgrade the monorepo to 1.17 and move away from Bingo, I found this error when trying to use Kustomize:
Looks like Have you found similar issues? And if so, do you have a workaround? Given how messy the dependency hell problem is in all languages, we could expect exlude/replace directives to be not a rare thing. |
well we don't have need for excludes since axing the istio deps :D |
serious answer: 😎 personally, I would try to push that onto the tools themselves, ex keep a bingo file around for things not supported, yet, or just do the same thing ad-hoc in your make file. Raise an issue with the repo that has the conflicts and at least inform them that their tool doesn't work because they are needing to do replaces and whatnot. Some libraries have alternatives that don't have dependency hell, and in any case you can help build pressure on the original go issue that was denied, and through all of it have paperwork in case things change (ex the links to the issues that might resolve) |
Looks like it already was reported. Let's see! kubernetes-sigs/kustomize#3618 |
Is your feature request related to a problem? Please describe.
Right now, we use a modified version of bingo to pin versions without tainting GOBIN's default. For example, this is used to invoke known versions of hugo, goreleaser, golint, etc
Describe the solution you'd like
Inside the Makefile, declare paths for each main tool and do
go run
instead. This reduces the toolchain knowledge to run the project and conversion to make-unfriendly env like windows more straightforward.Describe alternatives you've considered
Leaving it alone. There is some benefit to leaving it as depending on how
go run
in 1.17 is implemented, it might be inefficient to repeatedly run the same command.Additional context
https://tip.golang.org/doc/go1.17#go-command
The text was updated successfully, but these errors were encountered: