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

refactor!: remove lockfileFilename #5604

Merged
merged 3 commits into from
Jul 28, 2023

Conversation

paul-soporan
Copy link
Member

What's the problem this PR addresses?

lockfileFilename is a configuration option that provides little value and overcomplicates other parts of the codebase.

Many third-party tools aren't even aware of it and even we have parts of the codebase that completely ignore it and use yarn.lock.

It also complicates project detection, as we first need to instantiate the configuration before being able to walk up the filesystem to find the project root.

How did you fix it?

Removed it.

Configuration.findProjectCwd could also use a different signature but I'll leave it for a different PR since I intend to refactor it anyways.

Checklist

  • I have set the packages that need to be released for my changes to be effective.
  • I will check that all automated PR checks pass before the PR gets reviewed.

@paul-soporan paul-soporan mentioned this pull request Jul 24, 2023
13 tasks
@merceyz
Copy link
Member

merceyz commented Jul 24, 2023

This should probably close #3504 and #2497.

@arcanis arcanis merged commit 1d85a97 into master Jul 28, 2023
17 checks passed
@arcanis arcanis deleted the paul/refactor/remove-lockfileFilename branch July 28, 2023 14:01
nicknovitski added a commit to nicknovitski/yarn-plugin-nixify that referenced this pull request Oct 10, 2023
This field will be removed from yarn in version 4: yarnpkg/berry#5604

With this change, the plugin works with the current canary release, v4.0.0-rc.53.
nicknovitski added a commit to nicknovitski/yarn-plugin-nixify that referenced this pull request Oct 10, 2023
This field will be removed from yarn in version 4: yarnpkg/berry#5604

With this change, the plugin works with the current canary release, v4.0.0-rc.53.
@borekb borekb mentioned this pull request Nov 4, 2023
2 tasks
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