-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
copier: Renovate does not support git+https #31516
Comments
I have to retract that statement in its generality. While Renovate is able to extract and lookup, actually performing the update fails. Renovate does not seem to forward HTTPS credentials to copier, or at least not in a way that copier understands:
Funny enough, we end up with "not quite empty" PRs: Anyway. Is credential forwarding part of this ticket, anyway, or would you like a separate discussion/issue, @rarkins ? Addendum: After some tinkering outside of Renovate, I think it should be possible to configure a suitable Git credential helper in (our custom extension of) the Renovate container image. That way, any tool that delegates to the Git CLI would work as expected. While it would be great if Renovate (or the image) would be set up to do that by default, we see the potential for a workaround, at least in on-prem settings. |
I don't know since when, but today Renovate -- presumably the copier manager? -- does add some Git configuration as environment variables, something like
which I interpret as: "if we can make either of HTTPs or SSH work, use that" (which may be completely off, I'm not familiar with the Whatever the exact semantics of this trio of config settings, it works (for us). We now have both HTTPS and SSH credentials configured in our Renovate deployment, and I can't tell which is ultimately being used by |
Discussed in #31454
Originally posted by reitzig September 18, 2024
What would you like help with?
I think I found a bug
How are you running Renovate?
Self-hosted
If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.
Bitbucket Data Center v8.19.6; Renovate 38.82.1
Please tell us more about your question or problem
Copier supports source paths with several Git-related protocols:
Running Renovate on a repository that contains a
.copier-answers.yaml
with agit+https
-URL, we get:I can reproduce a similar error message with my local Git:
It seems as if Renovate forwarded the URL it found in
.copier-answers.yaml
togit
; in this case, it would need to remove agit+
prefix for that to work.Notes
In our case, plainhttps://(...).git
works.ssh://
but our Renovate setup uses HTTPS to access our Bitbucket; an automagic mapping would be great (but finicky since Bitbucket HTTPS vs SSH URLs have different structure).References
https
.Logs (if relevant)
Logs
The text was updated successfully, but these errors were encountered: