-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
Failed to update golang.org/x/tools/cmd/goimports
by go
datasource
#191
Comments
Okay I seem to have found the issue, renovate uses this url to list for version updates: https://proxy.golang.org/<name defined in the registry yaml>/@v/list So in case of ❯ curl -L "https://proxy.golang.org/golang.org/x/tools/gopls/@v/list"
v0.6.5-pre.1
v0.9.0-pre.3
v0.5.2-pre.2
v0.8.2-pre.1
v0.8.1-pre.2
v0.7.4-pre.1
v0.1.4 but it seems that for goimports, the ❯ curl -L "https://proxy.golang.org/golang.org/x/tools/goimports/@v/list"
not found: module golang.org/x/tools/goimports: no matching versions for query "latest"⏎ but if curl -L "https://proxy.golang.org/github.com/golang/tools/@v/list"
v0.1.4
v0.1.12
v0.1.3
v0.1.9
v0.1.7
v0.1.10
v0.1.6
v0.1.2
v0.1.11
v0.1.8
v0.1.0
v0.1.5
v0.1.1 i think this has to do with how a single repo hosts multiple cli and how proxy.golang.org finds package version. I'll try to figure out how it works internally and maybe propose some fix |
okay, i found the issue: If we look at the gitrepo, it has two go modules:
so in order to retrieve the ❯ curl -L "https://proxy.golang.org/golang.org/x/tools/gopls/@v/list"
v0.6.5-pre.1
v0.9.0-pre.3
v0.5.2-pre.2
v0.8.2-pre.1
v0.8.1-pre.2
v0.7.4-pre.1
v0.1.4 and in-order to retrieve the version of any command under ❯ curl -L "https://proxy.golang.org/golang.org/x/tools/@v/list"
v0.1.4
v0.1.12
v0.1.3
v0.1.9
v0.1.7
v0.1.10
v0.1.6
v0.1.2
v0.1.11
v0.1.8
v0.1.0
v0.1.5
v0.1.1 so basically the module name defined in In aqua we can fix it by using something like this:
but this would mean we lose the ability to tell the package name is |
Thank you for your investigation. I have two ideas to solve the issue.
I think 1 is better. 1. Use
|
Yes, I also like the option 1 since the user doesn't need to set a custom renovate comment. I'll create a PR to address this |
hmm I see a problem, since https://github.com/aquaproj/aqua-renovate-config/blob/main/default.json#L9 is only for github releases, renovate would fail to find the github tags I assume (I could be wrong here), also |
How about this? |
Rename `goimports` as per discussion in aquaproj/aqua-renovate-config#191 Signed-off-by: Noel Georgi <[email protected]>
Solved. #207 |
https://app.renovatebot.com/dashboard#github/suzuki-shunsuke/test-renovate/762018971
https://app.renovatebot.com/dashboard#github/suzuki-shunsuke/test-renovate/762018971
renovate.json
The text was updated successfully, but these errors were encountered: