Question is it possible to reference a private repo in the build.zig.zon file?
Currently I am getting 404 unless I make the repo public.
I am using the latest build of zig.
Question is it possible to reference a private repo in the build.zig.zon file?
Currently I am getting 404 unless I make the repo public.
I am using the latest build of zig.
No, at least not at the moment.
Maybe a bit late and not with perfect solutions, but you can try with:
a git submodule (or a simple project subfolder) and add the library in build.zig.zon
:
.dependencies = .{
.ztester = .{
.path = "external/private_repo",
},
},
or, make a local archive with your code and:
.dependencies = .{
.ztester = .{
.url = "file:///home/some_path/project/archives/private_repo.tar.gz",
.hash = "some_hash",
},
},
or, make an archive, store it in your email drive and:
.dependencies = .{
.ztester = .{
.url = "https:///some_path/archives/private_repo.tar.gz",
.hash = "some_hash",
},
},
More or less these are “testing” solutions, not very suitable for production.