Skip to content

Commit 306d59e

Browse files
fengmk2Copilot
andcommitted
Update crates/vite_package_manager/src/package_manager.rs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: MK (fengmk2) <fengmk2@gmail.com>
1 parent 15dfbe2 commit 306d59e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/vite_package_manager/src/package_manager.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ impl PackageManagerBuilder {
9797
if version == "latest" {
9898
version = get_latest_version(package_manager_type).await?;
9999
should_update_package_manager_field = true;
100-
hash = None; // Reset hash when fetching latest
100+
hash = None; // Reset hash when fetching latest since hash is version-specific
101101
}
102102

103103
// handle yarn >= 2.0.0 to use `@yarnpkg/cli-dist` as package name

0 commit comments

Comments
 (0)