-
Notifications
You must be signed in to change notification settings - Fork 125
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
west update
doesn't sync submodule location
#497
Comments
@mbolivar fyi |
What is the error message when the remote changes? |
In case of Project CHIP, where we spotted the issue, there is no error because the new repository is a copy of the old repository and they both have the same commit ids, but in case some repository switches to a new location and stops pushing changes to the old one you may one day get an error that a commit id of the submodule doesn't exist (I haven't tested it though). Our primary issue at the moment is that in Project CHIP the pigweed submodule was moved to another location to workaround some firewall/content blocking issues and this won't help to existing users without running |
Good, then it would be easy to root cause the change.
I hope this is rare. I don't think I'm a bit puzzled by |
@Damian-Nordic my feeling so far is that we should add a Would that work for you? My concern is avoiding |
Unfortunately, I have no answer to the question if there's any hidden catch. I would need to spend some time on it, write tests etc. to understand better if there's any risk, but so far I haven't encountered any issues with running the sync. Suppose that we don't find any problems during the risk analysis. Then I would argue that
I know it may be a rare case, but not impossible, so IMHO it's worth trying to address it. |
I've posted #499. @Damian-Nordic please review. |
seems a generalized
|
I am currently -1 on this for reasons explained there. |
west update
only runsgit submodule update ...
command for each submodule defined in the west manifest, but it's not enough in case a submodule's URL changes - apparently,git submodule update
won't update the submodule's remote.git submodule sync
should be called as well.The text was updated successfully, but these errors were encountered: