Skip to content
This repository has been archived by the owner on Mar 5, 2022. It is now read-only.

Alternatives #62

Open
lovromazgon opened this issue Mar 24, 2021 · 3 comments
Open

Alternatives #62

lovromazgon opened this issue Mar 24, 2021 · 3 comments

Comments

@lovromazgon
Copy link

I see this project is not maintained anymore, is there an alternative tool that does the same job? Maybe even one that goes a step further and vendors tools written in any language, not just Go.

@obalunenko
Copy link

@lovromazgon On my own I found this solution very useful
https://github.com/go-modules-by-example/index/blob/master/010_tools/README.md

@lovromazgon
Copy link
Author

Thanks @obalunenko, I am actually using this approach already. Here's the command I use for automatically installing all tools at once (the idea comes from this post):

go list -f '{{ join .Imports "\n" }}' tools.go | xargs -tI % go install %

It's not ideal though, this approach still lacks the ability to define dependencies for non-go tools like protoc.

@obalunenko
Copy link

Thanks, @lovromazgon for sharing this idea)

Yeah, for non-go tools it's a bit tricky to get the right version.
You can check my script for this. It is relevant for almost all tools after adding some changes to download URL and os/arch mappings
https://gist.github.com/obalunenko/648e657f9e650d9445037afab0a7fb81

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants