Repository navigation
feat(project): Offer configPath property to workspace configs (workspace/1.1) - #1643
Conversation
workspace/1.1)configPath property to workspace yamls (workspace/1.1)
configPath property to workspace yamls (workspace/1.1)configPath property to workspace configs (workspace/1.1)
|
Kindly asking @KlattG to review the documentation part of this PR already ( (I didn't add this feature to the usual |
398ace8 to
5c857ed
Compare
d3xter666
left a comment
There was a problem hiding this comment.
Please, check the log when you try to build with this new validation/schema:
strict mode: missing type "object" for keyword "properties" at "ui5-workspace.json#/then/properties/dependencyManagement" (strictTypes)
strict mode: missing type "array" for keyword "items" at "ui5-workspace.json#/then/properties/dependencyManagement/properties/resolutions" (strictTypes)
strict mode: missing type "object" for keyword "required" at "ui5-workspace.json#/then/properties/dependencyManagement/properties/resolutions/items/then/not" (strictTypes)This is from AJV's strict mode
Resolved with 4ebdb73 |
b5f28b4 to
2a27fc6
Compare
adf732b to
6e7dcd2
Compare
Resolve workspace entries one at a time and track visited paths per resolution to prevent cycles. Preserve the most specific configuration when workspace globs overlap.
Treat paths with and without trailing slashes as the same directory, so overlapping resolutions load only the most specific config. + Add tests
51acda3 to
d3b7fb4
Compare
b4ee83b to
75f8e5e
Compare
Review HelpAs this PR is quite huge, this review order might ease the start:
The many new files under Fixture: collection.cLocated under Fixture: collection.c.noCustomConfigForLibALocated under The added tests mostly test if the correct config was loaded in various scenarios. |
devtomtom
left a comment
There was a problem hiding this comment.
Overall it looks good to me.
a38bcec to
bd77759
Compare
…uplicate resolutions)
- Make the yaml example at the top expanded by default (not collapsed) - same for the other example below - add [...] at some fitting code snippets
🚜 New release prepared --- <details><summary>builder: 5.0.0-alpha.16</summary> ## [5.0.0-alpha.16](builder-v5.0.0-alpha.15...builder-v5.0.0-alpha.16) (2026-11-16) ### chore * **builder:** Synchronize ui5-cli-packages versions ### Dependencies * The following workspace dependencies were updated * dependencies * @ui5/fs bumped from ^5.0.0-alpha.15 to ^5.0.0-alpha.16 * @ui5/logger bumped from ^5.0.0-alpha.15 to ^5.0.0-alpha.16 * devDependencies * @ui5/project bumped from ^5.0.0-alpha.15 to ^5.0.0-alpha.16 </details> <details><summary>cli: 5.0.0-alpha.16</summary> ## [5.0.0-alpha.16](cli-v5.0.0-alpha.15...cli-v5.0.0-alpha.16) (2026-11-16) ### chore * **cli:** Synchronize ui5-cli-packages versions ### Dependencies * The following workspace dependencies were updated * dependencies * @ui5/builder bumped from ^5.0.0-alpha.15 to ^5.0.0-alpha.16 * @ui5/fs bumped from ^5.0.0-alpha.15 to ^5.0.0-alpha.16 * @ui5/logger bumped from ^5.0.0-alpha.15 to ^5.0.0-alpha.16 * @ui5/project bumped from ^5.0.0-alpha.15 to ^5.0.0-alpha.16 * @ui5/server bumped from ^5.0.0-alpha.15 to ^5.0.0-alpha.16 </details> <details><summary>fs: 5.0.0-alpha.16</summary> ## [5.0.0-alpha.16](fs-v5.0.0-alpha.15...fs-v5.0.0-alpha.16) (2026-11-16) ### chore * **fs:** Synchronize ui5-cli-packages versions ### Dependencies * The following workspace dependencies were updated * dependencies * @ui5/logger bumped from ^5.0.0-alpha.15 to ^5.0.0-alpha.16 </details> <details><summary>logger: 5.0.0-alpha.16</summary> ## [5.0.0-alpha.16](logger-v5.0.0-alpha.15...logger-v5.0.0-alpha.16) (2026-11-16) ### Dependencies * Bump slice-ansi from 9.0.1 to 10.0.0 ([#1698](#1698)) ([8e87959](8e87959)) </details> <details><summary>project: 5.0.0-alpha.16</summary> ## [5.0.0-alpha.16](project-v5.0.0-alpha.15...project-v5.0.0-alpha.16) (2026-11-16) ### Features * **project:** Offer `configPath` property to workspace configs (`workspace/1.1`) ([#1643](#1643)) ([9fcaac3](9fcaac3)) ### Dependencies * The following workspace dependencies were updated * dependencies * @ui5/fs bumped from ^5.0.0-alpha.15 to ^5.0.0-alpha.16 * @ui5/logger bumped from ^5.0.0-alpha.15 to ^5.0.0-alpha.16 * peerDependencies * @ui5/builder bumped from ^5.0.0-alpha.15 to ^5.0.0-alpha.16 </details> <details><summary>server: 5.0.0-alpha.16</summary> ## [5.0.0-alpha.16](server-v5.0.0-alpha.15...server-v5.0.0-alpha.16) (2026-11-16) ### chore * **server:** Synchronize ui5-cli-packages versions ### Dependencies * The following workspace dependencies were updated * dependencies * @ui5/builder bumped from ^5.0.0-alpha.15 to ^5.0.0-alpha.16 * @ui5/fs bumped from ^5.0.0-alpha.15 to ^5.0.0-alpha.16 * @ui5/logger bumped from ^5.0.0-alpha.15 to ^5.0.0-alpha.16 * devDependencies * @ui5/project bumped from ^5.0.0-alpha.15 to ^5.0.0-alpha.16 </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Cherry pick of v4 feature: ui5-project#902
This offers a
configPathproperty to workspace dependency resolution entries as follows:(Introducing new specVersion
workspace/1.1)Other sub features:
pathis absolutepathproperty)configPathconfigPath(forpathit's already allowed)The workspace resolution logic is now explicitly implemented as "Most specific wins" (the resolution entry with the deepest
pathgets precedence). Entries are sequentially processed while keeping file reads, glob expansion, and traversal within each entry async.Closes: #1369
JIRA: CPOUI5FOUNDATION-1233