aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-01-25 17:26:09 -0800
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-01-25 17:26:09 -0800
commitb26ff0074dfa2b632b48c5f797047adb43267920 (patch)
tree003ffdd5744bc6027181d1ffb95009d635f517b5 /src
parent0a8e42a4ba06fbe7a6b65086c6833731e6f6a78c (diff)
downloadbun-b26ff0074dfa2b632b48c5f797047adb43267920.tar.gz
bun-b26ff0074dfa2b632b48c5f797047adb43267920.tar.zst
bun-b26ff0074dfa2b632b48c5f797047adb43267920.zip
[bun install] Include the resolved version for github dependencies in the hash
Diffstat (limited to 'src')
-rw-r--r--src/install/repository.zig5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/install/repository.zig b/src/install/repository.zig
index cb7ded6d8..e4f775b47 100644
--- a/src/install/repository.zig
+++ b/src/install/repository.zig
@@ -70,7 +70,10 @@ pub const Repository = extern struct {
try writer.writeAll("/");
try writer.writeAll(formatter.repository.repo.slice(formatter.buf));
- if (!formatter.repository.committish.isEmpty()) {
+ if (!formatter.repository.resolved.isEmpty()) {
+ try writer.writeAll("#");
+ try writer.writeAll(formatter.repository.resolved.slice(formatter.buf));
+ } else if (!formatter.repository.committish.isEmpty()) {
try writer.writeAll("#");
try writer.writeAll(formatter.repository.committish.slice(formatter.buf));
}