Support remapping of west projects urls#869
Open
thorsten-klein wants to merge 2 commits intozephyrproject-rtos:mainfrom
Open
Support remapping of west projects urls#869thorsten-klein wants to merge 2 commits intozephyrproject-rtos:mainfrom
thorsten-klein wants to merge 2 commits intozephyrproject-rtos:mainfrom
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #869 +/- ##
==========================================
+ Coverage 84.93% 85.05% +0.12%
==========================================
Files 11 11
Lines 3444 3467 +23
==========================================
+ Hits 2925 2949 +24
+ Misses 519 518 -1
|
d35e837 to
d12eb95
Compare
d12eb95 to
bc81ddf
Compare
Collaborator
|
Do you think you could focus on the Obviously, your #867 will make this even easier. |
thorsten-klein
added a commit
to thorsten-klein/west
that referenced
this pull request
Nov 16, 2025
Add support for a new 'import-modifications' section in the manifest. Under the 'url-replace' key, users can define search-and-replace patterns that are applied to project URLs during manifest import. This allows downstream projects to modify remote URLs, e.g. when using mirrored repositories.
Test that import-modifications feature works to override west project urls that directly specified in west manifest or imported via submanifests.
bc81ddf to
cf5eba6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposal for #615
Support is added for a new
remappingsection in the west manifest.Under the
urlkey, users can define search-and-replace patterns (wherebyoldwill be replaced withnew).Those patterns are applied to all project URLs during project import (recursively).
This allows downstream projects to modify remote URLs while keeping all other metadata (e.g. original
revision).This is extremely helpful when downstream projects just want to use mirrored repositories.
Usage
In general you can specify search-replace patterns for
url(or substrings fromurl) viawest.yml.It is a simple search-replace (no regex).
This means, for example you can add following remapping-block to your
west.ymlin case you have mirrored all zephyr repositories into your own "mirrors" organization in your company Github instance:If the repositories are mirrored to different Github organizations or instances, you can apply multiple (more fine-granular) remapping-patterns.