Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yarn: frozen-lockfile integration test #683

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

slimreaper35
Copy link
Collaborator

closes #655

The integration test covers a scenario when running yarn install ... command will fail becuase of new dependencies that were added to package.json and yarn.lock would have to updated to reflect these changes.

Maintainers will complete the following section

  • Commit messages are descriptive enough
  • Code coverage from testing does not decrease and new code is covered
  • Docs updated (if applicable)
  • Docs links in the code are still valid (if docs were updated)

Note: if the contribution is external (not from an organization member), the CI
pipeline will not run automatically. After verifying that the CI is safe to run:

closes containerbuildsystem#655

The integration test covers a scenario when running
`yarn install ...` command will fail becuase of new
dependencies that were added to package.json and yarn.lock
would have to updated to reflect these changes.

Signed-off-by: Michal Šoltis <[email protected]>
@slimreaper35
Copy link
Collaborator Author

Related PR: cachito-testing/cachi2-yarn#1

@eskultety
Copy link
Member

closes #655

The way the issue is currently written then this PR definitely doesn't resolve it, it only addresses one of the list items. Depending on the consensus on #655 (comment) this PR might eventually be merged as is OR it'll need an additional inverted test (i.e. removing deps).

@slimreaper35
Copy link
Collaborator Author

https://github.com/cachito-testing/cachi2-yarn/tree/invalid_frozen_lockfile

When I manually ran the command yarn install --frozen-lockfile on that branch lockfile wasn't touched at all.

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.

Yarn 1.x: Detect when yarn.lock has been changed
2 participants