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

proposal: let go install tool execute current module version of the tool #72017

Closed
aria3ppp opened this issue Feb 28, 2025 · 1 comment
Closed
Labels
Milestone

Comments

@aria3ppp
Copy link

aria3ppp commented Feb 28, 2025

Proposal Details

right now go install tool will install the tool on the global go bin dir
i propose that go install tool install a dumb binary on go bin dir that its sole job is to look up for the current directory (module root) bin dir and find the same tool name and then execute that binary with the same name as tool name in go bin dir
this way every golang module can use its own version of the tool

@gopherbot gopherbot added this to the Proposal milestone Feb 28, 2025
@aria3ppp aria3ppp changed the title proposal: let go tool install execute current module tool proposal: let go install tool execute current module tool Feb 28, 2025
@aria3ppp aria3ppp changed the title proposal: let go install tool execute current module tool proposal: let go install tool execute current module version of the tool Feb 28, 2025
@seankhliao
Copy link
Member

I think this would break too many users who expect the old behaviour of actually installing a usable tool outside a module.

@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants