Skip to content

How to run yarn install on CI without --immutableΒ #3485

@segrey

Description

@segrey

We run yarn install on CI, and it fails with https://yarnpkg.com/advanced/error-codes#yn0028---frozen_lockfile_exception.
We'd rather avoid committing yarn.lock, because tests are running against latest yarn berry version and this might imply updating yarn.lock. Actually, we don't need exact installed package versions, so no real need in yarn.lock.

The tests are running on TeamCity CI. As I can see, --immutable is implied if CI or TEAMCITY_VERSION environment variables are set. Unfortunately, it's not enough. Could you please point me out to code that calculates --immutable default value?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions