Repository navigation
Go backend: resolve @latest for untagged packages in subdirectories #11045
zeitlinger
started this conversation in
Ideas
Replies: 1 comment
|
Thanks for the detailed reproduction. This is the same underlying package-path versus module-path resolution gap reported in #3822. I opened #11054 with a fix. The proxy resolver already walked parent path prefixes, but the direct The regression test covers This comment was generated by an AI coding assistant. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Summary
The Go backend cannot resolve
@latestfor a Go executable whose package is in a subdirectory of an untagged module, even thoughgo install <package>@latestsucceeds.Reproduction
With mise
2026.7.7and Go1.26.5:The direct Go command works:
$ go install github.com/grafana/grafana-internal-data-access/cmd/gida@latestThe package path is:
but the module path is:
The repository has no semver tags.
go list -m -json github.com/grafana/grafana-internal-data-access@latestresolves a pseudo-version, while querying the package path directly does not.Expected behavior
go:.../cmd/gida@latestshould behave likego install .../cmd/gida@latest:@latestfrom the first module that contains the package, including direct VCS resolution when the module is not available from the proxy.This would make untagged Go monorepos and
cmd/<tool>packages work naturally withmise.Current workaround
All reactions