From 43fc40b5c14a5892344eeffbadb0d8faef209150 Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Mon, 5 Jul 2021 17:37:12 -0700 Subject: [PATCH] cmd/fetch- put `mod.clean_path` instead of `.id` in lock file --- src/cmd/fetch.zig | 2 +- zigmod.lock | 22 +++++++++++----------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/cmd/fetch.zig b/src/cmd/fetch.zig index 2956593bf66be28a9a0ff049bb5b05b6c3c035e5..f3df2d42ff182bfa387736c81ef3f01aba5da28f 100644 --- a/src/cmd/fetch.zig +++ b/src/cmd/fetch.zig @@ -119,7 +119,7 @@ fn create_lockfile(list: *std.ArrayList(u.Module), dir: []const u8) !void { if (m.dep) |md| { const mpath = try std.fs.path.join(gpa, &.{ dir, m.clean_path }); const version = if (md.version.len > 0) md.version else (try md.type.exact_version(mpath))[0..14]; - try wl.print("{s} {s} {s} {s}\n", .{ m.id, @tagName(md.type), md.path, version }); + try wl.print("{s} {s} {s} {s}\n", .{ m.clean_path, @tagName(md.type), md.path, version }); } } } diff --git a/zigmod.lock b/zigmod.lock index f8d465c97f75b4f9a3c10d6a793acdc1c9a45619..07224b5920fbb32f607f00b0754fc3c855eaa494 100644 --- a/zigmod.lock +++ b/zigmod.lock @@ -1,11 +1,11 @@ -8mdbh0zuneb0i3hs5jby5je0heem1i6yxusl7c8y8qx68hqc git https://github.com/yaml/libyaml tag-0.2.5 -s84v9o48ucb0xq0cmzq0cn433hgw0iaqztugja16h8bzxu3h git https://github.com/nektro/zig-ansi commit-930ab1f -2ta738wrqbaqzl3iwzoo8nj35k9ynwz5p5iyz80ryrpp4ttf git https://github.com/ziglibs/known-folders commit-f5e5fb8 -0npcrzfdlrvkf44mzjo8bduj9gmqyefo0j3rstt6b0pm2r6r git https://github.com/nektro/zig-licenses commit-499bee6 -ejw82j2ipa0eul25ohgdh6yy5nkrtn2pf0rq18m0079w6wj7 git https://github.com/truemedian/zfetch commit-2cefe80 -9k24gimke1anv665ilg4si32ayl3dsaqgmdfdpu1ceoky8tl git https://github.com/truemedian/hzzp commit-2d30bdd -csbnipaad8n77buaszsnjvlmn6j173fl7pkprsctelswjywe git https://github.com/alexnask/iguanaTLS commit-0d39a36 -yyhw90zkzgmubwpp87n0pzf936n850an66y1c6qan5y6sogv git https://github.com/MasterQ32/zig-network commit-b9c9176 -u9w9dpp6p804p38o3u87f437pf942wxunyjite27dyhtu7ns git https://github.com/MasterQ32/zig-uri commit-f1896c6 -ocmr9rtohgccd6gm6tp8b1yzylyzkqwvo1q4btrsvj0cse9y git https://github.com/nektro/zig-json commit-6599064 -tnj3qf44tpeq469x94qnu7jzus5n7sen9ewrrn8kldngbac0 git https://github.com/nektro/zig-range commit-890ca30 +v/git/github.com/yaml/libyaml/tag-0.2.5 git https://github.com/yaml/libyaml tag-0.2.5 +git/github.com/nektro/zig-ansi git https://github.com/nektro/zig-ansi commit-930ab1f +git/github.com/ziglibs/known-folders git https://github.com/ziglibs/known-folders commit-f5e5fb8 +git/github.com/nektro/zig-licenses git https://github.com/nektro/zig-licenses commit-499bee6 +git/github.com/truemedian/zfetch git https://github.com/truemedian/zfetch commit-2cefe80 +git/github.com/truemedian/hzzp git https://github.com/truemedian/hzzp commit-2d30bdd +git/github.com/alexnask/iguanaTLS git https://github.com/alexnask/iguanaTLS commit-0d39a36 +git/github.com/MasterQ32/zig-network git https://github.com/MasterQ32/zig-network commit-b9c9176 +git/github.com/MasterQ32/zig-uri git https://github.com/MasterQ32/zig-uri commit-f1896c6 +git/github.com/nektro/zig-json git https://github.com/nektro/zig-json commit-6599064 +git/github.com/nektro/zig-range git https://github.com/nektro/zig-range commit-890ca30 -- 2.54.0