authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2023-06-24 15:20:27 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2023-06-24 15:20:27 -07:00
logba84a39193b88ab27cf6bf948244bfedcebfde4f
tree6e36174f9401f3663bdcf258e4deabca19f1ab49
parentd8787bb8a30e46d4f77453d747a4410792f99315

cmd/generate: make checkout depend on clone


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

deps.zig+1
...@@ -37,6 +37,7 @@ pub const GitExactStep = struct {...@@ -37,6 +37,7 @@ pub const GitExactStep = struct {
37 var checkoutstep = std.build.RunStep.create(b, "checkout");37 var checkoutstep = std.build.RunStep.create(b, "checkout");
38 checkoutstep.addArgs(&.{ "git", "-C", repopath, "checkout", "-q", commit });38 checkoutstep.addArgs(&.{ "git", "-C", repopath, "checkout", "-q", commit });
39 result.step.dependOn(&checkoutstep.step);39 result.step.dependOn(&checkoutstep.step);
40 checkoutstep.step.dependOn(&clonestep.step);
4041
41 return result;42 return result;
42 }43 }
src/cmd/generate.zig+1
...@@ -76,6 +76,7 @@ pub fn create_depszig(alloc: std.mem.Allocator, cachepath: string, dir: std.fs.D...@@ -76,6 +76,7 @@ pub fn create_depszig(alloc: std.mem.Allocator, cachepath: string, dir: std.fs.D
76 \\ var checkoutstep = std.build.RunStep.create(b, "checkout");76 \\ var checkoutstep = std.build.RunStep.create(b, "checkout");
77 \\ checkoutstep.addArgs(&.{ "git", "-C", repopath, "checkout", "-q", commit });77 \\ checkoutstep.addArgs(&.{ "git", "-C", repopath, "checkout", "-q", commit });
78 \\ result.step.dependOn(&checkoutstep.step);78 \\ result.step.dependOn(&checkoutstep.step);
79 \\ checkoutstep.step.dependOn(&clonestep.step);
79 // TODO rm the .git folder80 // TODO rm the .git folder
80 // TODO mark folder as read-only81 // TODO mark folder as read-only
81 \\82 \\