Skip to content

Conversation

@nathanwhit
Copy link
Member

@nathanwhit nathanwhit commented Jun 11, 2025

Fixes #29707.

Not particularly happy with this one, but the only other idea I had was to just ignore errors about non-existent exports when we build the graph for a top level install. That might end up being the best solution.

For background, when you do a top level install that includes a jsr dependency, we fetch the exports for the jsr package and then use those exports as roots in the module graph (which triggers caching those files).
To find those exports correctly, we need to know what version will end up being cached, otherwise we may end up trying to reference exports that don't exist on the actual package.

Previously, we could just look up the version in the lockfile and that worked, but it turns out that was depending on the behavior that was reverted in #29642.

@nathanwhit nathanwhit requested a review from dsherret June 11, 2025 23:06
Comment on lines +5 to +6
"jsr:@denotest/[email protected]": "0.7.0",
"jsr:@denotest/[email protected]": "0.7.1",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The case that broke with #29642.

We would get the exports for 0.7.0, but then when building the graph we would end up resolving 0.7 -> 0.7.1, making the exports invalid.

Copy link
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nathanwhit nathanwhit merged commit 4072c2c into denoland:main Jun 12, 2025
18 checks passed
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.

deno outdated fails to run

2 participants