This commit is contained in:
parent
53981da7c1
commit
a28c96994c
|
@ -149,9 +149,7 @@ fn bootstrapLocation(package: Package) ![]const u8 {
|
||||||
&[_][]const u8{"p"},
|
&[_][]const u8{"p"},
|
||||||
);
|
);
|
||||||
// Destination file does not exist. Write the bootstrap (after creating the directory)
|
// Destination file does not exist. Write the bootstrap (after creating the directory)
|
||||||
std.fs.makeDirAbsolute(pkg_path) catch |e| {
|
std.fs.makeDirAbsolute(pkg_path) catch {};
|
||||||
std.debug.print("Could not mkdir {?s}: {}\n", .{ std.fs.path.dirname(dest_path), e });
|
|
||||||
};
|
|
||||||
std.fs.makeDirAbsolute(std.fs.path.dirname(dest_path).?) catch {};
|
std.fs.makeDirAbsolute(std.fs.path.dirname(dest_path).?) catch {};
|
||||||
const write_file = try std.fs.createFileAbsolute(dest_path, .{});
|
const write_file = try std.fs.createFileAbsolute(dest_path, .{});
|
||||||
defer write_file.close();
|
defer write_file.close();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user