[Bug?]: yarn workspaces focus does not default to --immutable on CI #6277
Labels
bug
Something isn't working
waiting for feedback
Will autoclose in a while unless more data are provided
Self-service
Describe the bug
When running
yarn install
on CI (GitHub Actions in my specific scenario), it will enable--immutable
and prevent continuing if the install happens to update the lockfile. However, then focus installing - which we do to speed up installing dependencies on CI - it does not. There is no--immutable
flag toworkspaces focus
yet for me to manually enable it either.Running
yarn install --mode=update-lockfile
as a separate step works but I would like to avoid the extra step, sinceinstall
already has that behavior andworkspaces focus
should follow suit.To reproduce
package.json
:yarn.lock
:Running
yarn install --immutable
(or running in CI) results in the following:It is not possible to run
yarn workspaces focus --immutable
and in CI it silently updates the lockfile.Environment
System: OS: macOS 14.4.1 CPU: (10) arm64 Apple M1 Pro Binaries: Node: 20.11.1 - /private/var/folders/03/j2jymg9n377bdxjh26rpckv40000gp/T/xfs-ee1b3860/node Yarn: 4.1.1 - /private/var/folders/03/j2jymg9n377bdxjh26rpckv40000gp/T/xfs-ee1b3860/yarn npm: 10.2.4 - ~/.config/asdf/plugins/nodejs/shims/npm
Additional context
The link to sherlock documentation is broken
The text was updated successfully, but these errors were encountered: