authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-07-05 17:37:12 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-07-05 17:37:12 -07:00
log43fc40b5c14a5892344eeffbadb0d8faef209150
tree4ff5390c61a943e2fefebf44ad97b2b5f94fe980
parentf331fc4c1d51c44e5dba9cafd60c7defd9c4d98d

cmd/fetch- put `mod.clean_path` instead of `.id` in lock file


2 files changed, 12 insertions(+), 12 deletions(-)

src/cmd/fetch.zig+1-1
...@@ -119,7 +119,7 @@ fn create_lockfile(list: *std.ArrayList(u.Module), dir: []const u8) !void {...@@ -119,7 +119,7 @@ fn create_lockfile(list: *std.ArrayList(u.Module), dir: []const u8) !void {
119 if (m.dep) |md| {119 if (m.dep) |md| {
120 const mpath = try std.fs.path.join(gpa, &.{ dir, m.clean_path });120 const mpath = try std.fs.path.join(gpa, &.{ dir, m.clean_path });
121 const version = if (md.version.len > 0) md.version else (try md.type.exact_version(mpath))[0..14];121 const version = if (md.version.len > 0) md.version else (try md.type.exact_version(mpath))[0..14];
122 try wl.print("{s} {s} {s} {s}\n", .{ m.id, @tagName(md.type), md.path, version });122 try wl.print("{s} {s} {s} {s}\n", .{ m.clean_path, @tagName(md.type), md.path, version });
123 }123 }
124 }124 }
125}125}
zigmod.lock+11-11
...@@ -1,11 +1,11 @@...@@ -1,11 +1,11 @@
18mdbh0zuneb0i3hs5jby5je0heem1i6yxusl7c8y8qx68hqc git https://github.com/yaml/libyaml tag-0.2.51v/git/github.com/yaml/libyaml/tag-0.2.5 git https://github.com/yaml/libyaml tag-0.2.5
2s84v9o48ucb0xq0cmzq0cn433hgw0iaqztugja16h8bzxu3h git https://github.com/nektro/zig-ansi commit-930ab1f2git/github.com/nektro/zig-ansi git https://github.com/nektro/zig-ansi commit-930ab1f
32ta738wrqbaqzl3iwzoo8nj35k9ynwz5p5iyz80ryrpp4ttf git https://github.com/ziglibs/known-folders commit-f5e5fb83git/github.com/ziglibs/known-folders git https://github.com/ziglibs/known-folders commit-f5e5fb8
40npcrzfdlrvkf44mzjo8bduj9gmqyefo0j3rstt6b0pm2r6r git https://github.com/nektro/zig-licenses commit-499bee64git/github.com/nektro/zig-licenses git https://github.com/nektro/zig-licenses commit-499bee6
5ejw82j2ipa0eul25ohgdh6yy5nkrtn2pf0rq18m0079w6wj7 git https://github.com/truemedian/zfetch commit-2cefe805git/github.com/truemedian/zfetch git https://github.com/truemedian/zfetch commit-2cefe80
69k24gimke1anv665ilg4si32ayl3dsaqgmdfdpu1ceoky8tl git https://github.com/truemedian/hzzp commit-2d30bdd6git/github.com/truemedian/hzzp git https://github.com/truemedian/hzzp commit-2d30bdd
7csbnipaad8n77buaszsnjvlmn6j173fl7pkprsctelswjywe git https://github.com/alexnask/iguanaTLS commit-0d39a367git/github.com/alexnask/iguanaTLS git https://github.com/alexnask/iguanaTLS commit-0d39a36
8yyhw90zkzgmubwpp87n0pzf936n850an66y1c6qan5y6sogv git https://github.com/MasterQ32/zig-network commit-b9c91768git/github.com/MasterQ32/zig-network git https://github.com/MasterQ32/zig-network commit-b9c9176
9u9w9dpp6p804p38o3u87f437pf942wxunyjite27dyhtu7ns git https://github.com/MasterQ32/zig-uri commit-f1896c69git/github.com/MasterQ32/zig-uri git https://github.com/MasterQ32/zig-uri commit-f1896c6
10ocmr9rtohgccd6gm6tp8b1yzylyzkqwvo1q4btrsvj0cse9y git https://github.com/nektro/zig-json commit-659906410git/github.com/nektro/zig-json git https://github.com/nektro/zig-json commit-6599064
11tnj3qf44tpeq469x94qnu7jzus5n7sen9ewrrn8kldngbac0 git https://github.com/nektro/zig-range commit-890ca3011git/github.com/nektro/zig-range git https://github.com/nektro/zig-range commit-890ca30