Skip to content

Conversation

@thorsten-klein
Copy link
Contributor

@thorsten-klein thorsten-klein commented Oct 17, 2025

Proposal for #615

Support is added for a new import-modifications section in the west manifest.

Under the url-replace key, users can define search-and-replace patterns that are applied to project URLs during project import. This allows downstream projects to modify remote URLs while keeping original revision, e.g. when using mirrored repositories.

@thorsten-klein thorsten-klein marked this pull request as draft October 17, 2025 13:07
@codecov
Copy link

codecov bot commented Oct 17, 2025

Codecov Report

❌ Patch coverage is 95.65217% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 85.05%. Comparing base (bb1c7bf) to head (cf5eba6).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/west/manifest.py 95.65% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            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     
Files with missing lines Coverage Δ
src/west/manifest.py 95.62% <95.65%> (+0.19%) ⬆️

@thorsten-klein thorsten-klein marked this pull request as ready for review October 26, 2025 16:01
@thorsten-klein thorsten-klein changed the title [draft] Allow modifying remote/project urls of imported manifests Allow modifying remote/project urls of imported manifests Oct 26, 2025
@marc-hb
Copy link
Collaborator

marc-hb commented Nov 5, 2025

Do you think you could focus on the west config approach first? Because it should be smaller and easier to experiment with, review, test and use in anger etc., while sharing the code with any manifest-based approach later. As discussed in #615, imports can be very tricky and very error-prone.

Obviously, your #867 will make this even easier.

@thorsten-klein thorsten-klein marked this pull request as draft November 6, 2025 08:42
@thorsten-klein thorsten-klein changed the title Allow modifying remote/project urls of imported manifests Allow modifying remote/url from projects Nov 12, 2025
thorsten-klein added a commit to thorsten-klein/west that referenced this pull request Nov 16, 2025
@thorsten-klein thorsten-klein marked this pull request as ready for review November 19, 2025 10:29
thorsten-klein and others added 2 commits November 19, 2025 13:59
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.
@thorsten-klein thorsten-klein changed the title Allow modifying remote/url from projects Support remapping of west projects urls Nov 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants