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

Conversation

aliuk2012
Copy link
Contributor

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

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
@auto-comment
Copy link

auto-comment bot commented Apr 22, 2020

Auto pull request trigger is configured on this repository for PR validation. To review the app deployed by this PR, please replace #### in the URL given below with the first four characters of your branch name. This could be your trello card number. https://s121d02-####-find-as.azurewebsites.net/

@dankmitchell dankmitchell temporarily deployed to find-teacher-yarn-lock-wk5g9sw April 22, 2020 05:46 Inactive
@aliuk2012 aliuk2012 merged commit 748286c into master Apr 22, 2020
@aliuk2012 aliuk2012 deleted the yarn-lock branch April 22, 2020 06:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants