-
Notifications
You must be signed in to change notification settings - Fork 7
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
v0.22.0 appears to disable SSH access to git repositories #234
Comments
I do get the idea behind this, and perhaps this isn't strictly a bug with v0.22.0, but I'm struggling to work out how to get I wonder if the new functionality should be opt-in? For now we're pinning at v0.21.0 |
Hi, Thanks for the reporting, if you like to contribute I guess we would consider adding a feature flag to change this behaviour for your use case. |
Thanks. It certainly would help us out, so if it's something that would be considered then it would make sense for us to spend some time on it. Before we do, would something like the following be ideal?
This would toggle out the two git config calls here: I have no idea what else that will break yet, will obviously test as best as we can if provisionally happy with this approach. |
@rickardl I would add that the |
Hi @jhosteny, it's no trouble, thank you for the features :) Our situation:
With this config, yarn would use the ssh key that we add to the container in our build/test/package job to checkout those from github using SSH. With the new feature, what appears to happen (and I'm a bit unsure here) is that because of the change to Another possible solution that's come to mind is to revert those changes after the pull to fetch submodules - although that would be more involved. We could possibly handle that in our jobs by removing the two config lines from git config, but to me it seems that trying to achieve that in the resource would be more appropriate. How feasible do you think it might be to return the git config to the state it was in before finishing the get? Alternatively, using the |
Hi @mrthehud, So, one thing I am confused by is why git is performing a substitution here. If I look at a config in one of my active PR builds, I see (in the
This is consistent with the code in Two other things to note: the original change used Second, I think that #200 may be able to remove the generic The only issue I have with your suggestion is that we would likely have to make a copy of the original config file and restore it when it is done, which feels incorrect to me. If it comes to that, it might be better to work with the maintainers to see if there is a way to restore the Regardless, I'd like to understand why the substitution is even occurring for you. |
Unfortunately I'm not able to share the repository, but our dependency URLs are of the form:
Conditionally setting those in the When this happened, I hijacked the container to have a peek. The below contains some of what I found at the time:
|
Ah, here is the offender:
The I will have a version of the resource today that will remove the |
Thanks @jhosteny! I'm not sure when I can get a chance to fix this, but I will try to soon. |
Update on that - I've tested, and your fix works for me! |
Probably relates to #233
The git config in the resource has changed to something like:
This prevents us then running a
yarn install
to install our private dependencies using a private key.The text was updated successfully, but these errors were encountered: