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

Commit lockfile for consistent CI and installs #3100

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

Conversation

uncenter
Copy link
Contributor

@uncenter uncenter commented Nov 11, 2023

Lockfiles exist to guarantee consistency across installs, especially in CI tests! This is a fresh lockfile from a fresh clone and install, and all tests are passing.

@zachleat
Copy link
Member

What are the drawbacks to checking in the lockfile?

  • Minor updates in dependencies must be opted into at the project level, right?
  • Increase in source conflicts

Others?

@uncenter
Copy link
Contributor Author

Minor updates in dependencies must be opted into at the project level, right?

Can you elaborate?

Increase in source conflicts

Sure, but that's easily resolved and doesn't outweigh the benefits of consistent package versioning in different environments.

@Aankhen
Copy link

Aankhen commented Nov 14, 2023

What are the drawbacks to checking in the lockfile?

  • Minor updates in dependencies must be opted into at the project level, right?

  • Increase in source conflicts

Others?

That seems like a fair summary. I’d like to emphasize for clarity that all changes to dependencies must be explicit, whether minor or major, upgrade or downgrade, etc. I agree with uncenter that conflicts in lockfiles are generally trivial to resolve, especially outside a monorepo, but that’s certainly a non-zero cost that should be considered.

(As for the more general question, I’m entirely on the side of committing it.)

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.

None yet

3 participants