Skip to content

Yarn: set default for immutable installs#3564

Merged
johnayeni merged 3 commits into
mainfrom
set-default-for-immutable-installs
Oct 7, 2025
Merged

Yarn: set default for immutable installs#3564
johnayeni merged 3 commits into
mainfrom
set-default-for-immutable-installs

Conversation

@johnayeni

Copy link
Copy Markdown
Contributor

Summary

This set default for immutable installs to be false except the --immutable flag is used explicitly

Tested scenarios

Fixed issue:

@johnayeni johnayeni requested a review from a team as a code owner October 7, 2025 14:33
@changeset-bot

changeset-bot Bot commented Oct 7, 2025

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 78eceee

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@netlify

netlify Bot commented Oct 7, 2025

Copy link
Copy Markdown

Deploy Preview for adyen-web ready!

Name Link
🔨 Latest commit 78eceee
🔍 Latest deploy log https://app.netlify.com/projects/adyen-web/deploys/68e5276eb86d460008b8ccce
😎 Deploy Preview https://deploy-preview-3564.checkout-web-dev.adyen.com
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @johnayeni, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces a change to the Yarn configuration, specifically altering the default setting for immutable installs. By setting enableImmutableInstalls to false in the .yarnrc.yml file, the project ensures that Yarn installations are mutable by default, requiring an explicit flag to enforce immutability. This adjustment aims to streamline the installation process by changing the default behavior, potentially impacting development workflows and CI/CD pipelines where immutable installs might have been implicitly expected.

Highlights

  • Yarn Configuration Update: The default behavior for Yarn's immutable installs has been modified. The enableImmutableInstalls setting is now explicitly set to false in the .yarnrc.yml file.
  • Default Immutable Installs: Yarn will no longer perform immutable installs by default. This behavior will only be activated when the --immutable flag is explicitly used during the install process.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request sets enableImmutableInstalls to false in the .yarnrc.yml file. While this change is simple, it has significant implications for the project's dependency management and build reproducibility. Disabling immutable installs in CI can lead to the yarn.lock file becoming out of sync with package.json, causing builds to use dependencies that haven't been reviewed or committed. I've added a comment explaining these risks and recommending to revert this change to ensure dependency consistency and build integrity.

Comment thread .yarnrc.yml
@github-actions

github-actions Bot commented Oct 7, 2025

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size
UMD 113.79 KB (0%)
Auto 120.08 KB (0%)
ESM - Core 23.92 KB (0%)
ESM - Core + Card 64.1 KB (0%)
ESM - Core + Dropin with Card 68.88 KB (0%)

@sonarqubecloud

sonarqubecloud Bot commented Oct 7, 2025

Copy link
Copy Markdown

@johnayeni johnayeni merged commit d45a788 into main Oct 7, 2025
22 checks passed
@johnayeni johnayeni deleted the set-default-for-immutable-installs branch October 7, 2025 15:01
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