You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any software looking to find a list of valid versions for github.com/go-task/task/v3/cmd/task I believe has to just check:
before finding the "root" of the module. This is further complicated by the way major versions are incorporated into the path when the module root is not the repository root.
It would be very useful if go install could have a flag to list installable versions (with json?), as it does this check somewhere internally to provide it's current functionality of checking if a version is valid.
The text was updated successfully, but these errors were encountered:
I need the list I want, go also never needs the list from go list -m -versions? These are tools for users, the proposal just extends existing functionality to work with subpackages. The alternative is naively redacting the path until a valid answer comes back.
This would mirror functionality available in other package-install tools:
cargo install --list
pnpm show xyz versions
Since go install is the go equivalent of cargo install or pnpm install -g, I don't see why it shouldn't have a similar option to list the available versions.
As for the confusing path specification, that's further justification for this to be information attainable from the toolchain, that way wrapping tools don't have to make a naive implementation of the same functionality that might not have the same consideration as a cmd/go feature.
I think the point of the proposal is clear, thank you for writing out your criticism instead of just leaving a 👎, even if I don't agree with it.