-
Notifications
You must be signed in to change notification settings - Fork 260
WIP PoC: migrate Cloudserver to Yarn 4 (Berry) #6293
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
Closed
Closed
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
31b4c10
PoC: migrate Cloudserver to Yarn 4 (Berry), node-modules linker
delthas a10870f
CI: adapt workflows to Berry
delthas 24d5171
Docker: adapt the image build to Berry
delthas 70eb8df
Fix three Berry incompatibilities found in review
delthas d9abb89
Fix blockers found in review
delthas 4a20cc2
Keep telemetry at its default; clarify why approvedGitRepositories ex…
delthas d691055
Fix the two remaining CI failures
delthas 36ef67d
Bump utapi to 8.2.7 and drop the packageExtensions workaround
delthas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| --- | ||
| nodeLinker: node-modules | ||
|
|
||
| # Required, not optional: Yarn's default is an empty allowlist, which blocks | ||
| # every Git fetch, so a repo with Git dependencies cannot install without | ||
| # this. Scoped to Scality rather than the "**" Yarn writes during migration. | ||
| # Every Git resolution here uses the .git clone form, which is the code path | ||
| # that actually enforces this (hosted github: shorthand would not be). | ||
| # npmMinimalAgeGate is deliberately left at Yarn's 1-day default, and | ||
| # enableScripts at its secure default — the packages that genuinely need | ||
| # compiling are allowlisted individually in package.json dependenciesMeta. | ||
| approvedGitRepositories: | ||
| - 'https://github.com/scality/*' | ||
| - 'ssh://git@github.com/scality/*' | ||
|
|
||
| # Several dependencies are Git repos that still carry Yarn 1 lockfiles, so Yarn | ||
| # bootstraps them with Yarn Classic when repacking. Run those serially: in | ||
| # parallel they race on Classic's shared cache and packing fails with ENOENT | ||
| # (YN0058). This replaces the --network-concurrency 1 flag Yarn 1 used, which | ||
| # Berry rejects on the CLI but still honours as a setting. | ||
| networkConcurrency: 1 |
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.