Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

Add --frozen-lockfile to docker image yarn install #267

Merged
merged 1 commit into from Apr 22, 2020
Merged

Commits on Apr 22, 2020

  1. Add --frozen-lockfile to docker image yarn install

    Webpacker 5.1.0 removed yarn integrity checker. This commit ensures that
    we also use the yarn.lock we generated while developing rather than updating
    it. It should also fail if package.json & yarn.lock are out of sync.
    
    Yarn's own maintainer discourages its use:
    yarnpkg/yarn#6427 (comment)
    and suggests the following solution:
    Solution
    Remove the integrity initializer and the configuration options. Encourage
    developers to ensure yarn install in local environments and
    yarn install --frozen-lockfile as part of deployment.
    
    Other references:
    https://classic.yarnpkg.com/en/docs/cli/install#toc-yarn-install-frozen-lockfile
    rails/webpacker#2518
    aliuk2012 committed Apr 22, 2020
    Configuration menu
    Copy the full SHA
    971ac37 View commit details
    Browse the repository at this point in the history