-
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
Documentation concerning tsrc apply-manifest #336
Comments
The workflow looks like this. Say you want to add a new repo, named bar and you already have: repos:
- url: [email protected]:dmerejkowsky/foo.git
dest: foo
- url: [email protected]:dmerejkowsky/dummy-manifest.git
dest: manifest
- url: [email protected]:dmerejkowsky/foo.git
dest: foo
+
+ - url: [email protected]:dmerejkowsky/bar.git
+ dest: bar
That's expected. See the relevant documentation |
@dmerejkowsky thank you for confirming that we can call apply-manifest inside the workspace but not necessary have to be applied from a manifest outside the workspace. The documentation was unclear on this point and you should include your example to remove any confusion. Sorry for my poor English. In fact, I wanted to say that I tried two different things: First thing: Inital workspace/manifest/manifest.yml:
If I add a new repo bar:
The command Ok so far so good :) but : Second thing: Inital workspace/manifest/manifest.yml. Initial repo (repo foo with branch dev-foo):
Change the branch of repo foo to follow master:
The foo repo is not dirty ! Even if I commit (or not) workspace/manifest/manifest.yml in local (your step 3.) when I call |
Environment
tsrc version
: 2.5.0Hi ! Close question to this topic #279
The documentation could be updated to clarify the following incertitude. I was questioning myself concerning https://dmerejkowsky.github.io/tsrc/guide/manifest/ with sections "Using the apply-manifest command to avoid breaking developers' workflow" and "Additional notes".
Is:
(described in Additional notes)
Compatible with this command:
? (described in Using the apply-manifest command to avoid breaking developers' workflow
In other way: is the command
tsrc apply-manifest
works fine when the git repository holding the manifest is inside the workspace installed bytsrc init
?The answer seems to be yes, but this is not obvious because
manifest/manifest.yml
is dirty iand it will update.tsrc/xxx/manifest.yml
which will try to updatemanifest/manifest.yml
(but since dirty tsrc will not try to update ... or failed).I tried two things:
branch: dev-foo
and calltsrc apply-manifest manifest/manifest.yml
no error but tsrc did not switch to the branch to master. Not sure why !The text was updated successfully, but these errors were encountered: