-
Notifications
You must be signed in to change notification settings - Fork 36
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
Implement --no-update-manifest flag for sync #275
Implement --no-update-manifest flag for sync #275
Conversation
Oops. Sorry about that.
I'm curious about why you need to do that. Care to elaborate? Also, I'm realizing that |
Okay, so the scenario is this: I want to test a project using GitLab CI. Therefore my GitLab runner needs to clone the So that means that I need to use different URLs for the repositories than are configured for development in my manifest.
to this:
And that's why I grab my manifest, run a I can't just maintain a branch or a separate remote in my manifest for this purpose, because the |
Hum. We had the same problem at Tanker and we chose to create a dedicated account with ssh keys so that we could use the same manifest. This means you have manual operations to perform on runners - and I get it if this won't work for you. Well, I guess we can merge this - I've only minor requests now - and wait if other people come with more clever solutions... |
This new flag does not update the manifest before executing a sync. This is useful if one has unstaged changes in the manifest, and does not wish for them to be discarded by an update. Signed-off-by: Tronje Krabbe <[email protected]>
2530122
to
15d6cfc
Compare
Codecov Report
@@ Coverage Diff @@
## master #275 +/- ##
=========================================
Coverage ? 91.41%
=========================================
Files ? 25
Lines ? 1269
Branches ? 142
=========================================
Hits ? 1160
Misses ? 84
Partials ? 25 Continue to review full report at Codecov.
|
I'm not in too much of a rush to get this merged :) |
Cool, thanks a lot! |
Hi! I had already opened this MR on Gitlab, but then the project was moved back here. So here I go again:
This new flag does not update the manifest before executing a sync. This
is useful if one has unstaged changes in the manifest, and does not wish
for them to be discarded by an update.
I implemented this because I needed to modify the manifest and then perform a
tsrc sync
, in a CI environment. I run ased
script over the manifest to update all URLs, but thentsrc sync
just discards my changes, so the--no-update-manifest
flag helped me. Looking forward to your feedback!