ability to fetch git commits from the git clone that contains build.zig without network access #14293
Labels
enhancement
Solving this issue will likely involve adding new logic or components to the codebase.
zig build system
std.Build, the build runner, `zig build` subcommand, package management
Milestone
Uh oh!
There was an error while loading. Please reload this page.
Extracted from #14265.
zig build
could notice from.git/config
, if it exists, that a particular remote's URL matches the URL used from the build.zig.lulz file.For example,
.git/config
build.zig.lulz
Zig should be able to conclude that the requested url is the same url as the git clone that contains the build.zig.lulz file itself, and thereby search for the ref
3ab43988c1cc5e22c84faccd1816df6e8094d9a3
in the local clone rather than the network.Related:
If the ref could not be found in the local clone, an error should be emitted, rather than trying to do any fetching on the user's behalf. The error message could suggest a command to run however, for example,
git fetch origin --tags
.The text was updated successfully, but these errors were encountered: