Skip to content

Conversation

arcanis
Copy link
Member

@arcanis arcanis commented Mar 4, 2025

What's the problem this PR addresses?

I noticed while refactoring code that one test wasn't correct, and was hiding a bug in PnP. The locator {name: null, reference: null} was returning different dependencies than {name: "root", reference: "workspace:."}, which isn't expected.

How did you fix it?

Refactored how we assign the null / null package entry - it's now handled directly into generateSerializedState rather than the caller.

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.

@arcanis arcanis merged commit 477c963 into master Mar 4, 2025
25 of 26 checks passed
@arcanis arcanis deleted the mael/pnp-null-package branch March 4, 2025 22:35
adrian-gierakowski added a commit to rhinofi/yarnpnp2nix that referenced this pull request Apr 23, 2025
…r in generateInlinedScript

this is needed due to recent change in when top level package is set now
see: yarnpkg/berry#6712
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.

1 participant