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

fix: improve lockfile v4 and use deno_semver to fix duplicate entry issue #37

Merged
merged 13 commits into from
Aug 27, 2024

Conversation

dsherret
Copy link
Member

Fixes the issue found here: denoland/deno_graph#517 (comment)

Also, makes the "specifiers" area less verbose for lockfile v4.

Comment on lines -166 to -167
"jsr:@std/[email protected]": "jsr:@std/[email protected]",
"jsr:@std/assert@^0.210.0": "jsr:@std/[email protected]",
Copy link
Member Author

Choose a reason for hiding this comment

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

You'll notice here that we got smarter and can tell these are actually the same version requirement now.

Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

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

LGTM

#[serde(skip_serializing_if = "BTreeSet::is_empty")]
#[serde(default)]
pub dependencies: BTreeSet<String>,
pub dependencies: HashSet<JsrDepPackageReq>,
Copy link
Member

Choose a reason for hiding this comment

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

No longer need to keep ordering?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's handled in the printer only now.

@dsherret
Copy link
Member Author

I'm going to merge this one, but will follow up with a new PR that normalizes the versions.

@dsherret dsherret merged commit 420de8c into denoland:main Aug 27, 2024
1 check passed
@dsherret dsherret deleted the refactor_deno_semver branch August 27, 2024 22:53
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.

2 participants