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(npm): deterministically output tags to initialized file #27514

Merged
merged 1 commit into from
Dec 31, 2024

Conversation

dsherret
Copy link
Member

@dsherret dsherret commented Dec 31, 2024

The tags were being sorted in a random order due to the package_reqs hashmap

@@ -392,7 +393,17 @@ async fn sync_resolution_with_fs(
let folder_path = deno_local_registry_dir.join(&package_folder_name);
let tags = package_tags
.get(&package.id.nv)
.map(|tags| tags.join(","))
Copy link
Member Author

Choose a reason for hiding this comment

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

No .join(",") for BTreeSet

@dsherret dsherret requested a review from nathanwhit December 31, 2024 19:26
Copy link
Member

@nathanwhit nathanwhit left a comment

Choose a reason for hiding this comment

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

LGTM

@dsherret dsherret enabled auto-merge (squash) December 31, 2024 20:36
@dsherret dsherret merged commit 8e618e1 into denoland:main Dec 31, 2024
17 checks passed
dsherret added a commit that referenced this pull request Jan 9, 2025
The tags were being sorted in a random order due to the package_reqs
hashmap
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