-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add support for git+https sources #24
base: main
Are you sure you want to change the base?
add support for git+https sources #24
Conversation
is there anything else I should do to make this mergeable? |
@figsoda are you still available to review/maintain this repo? |
i really have no knowledge of zig tbh
also i tried to test parse, it does work BUT using it directly on the
gives this Again i don't anything about zig and i'm sorry if this not helpful, or not intended to be used this way. |
@Ciflire thank you for testing!
|
it looks like it's failing when it recursively gets to https://github.com/zigimg/zigimg more specifically, |
in const dep_init = ast.fullStructInit(&buf, dep_idx) orelse {
return error.ParseError;
}; with const dep_init = ast.fullStructInit(&buf, dep_idx) orelse {
continue;
}; does work, but I need to look into it further |
parsing dependencies with no deps fails
interestingly enough, this works (in a [mateidibu@precision5560:~/git/personal/fancy-cat]$ (cd ../zon2nix-matdibu && zig build) && ../zon2nix-matdibu/zig-out/bin/zon2nix
warning: failed to get dependencies
# generated by zon2nix (https://github.com/nix-community/zon2nix)
{ linkFarm, fetchzip, fetchgit }:
linkFarm "zig-packages" [
{
name = "12206695fbabe2c3f981ea79d97afe8d4fdb7790773a4153543c63ac7e0d11e564c7";
path = fetchgit {
url = "https://github.com/freref/fastb64z";
rev = "3bfba44545042f00cc908890a652da00dc3d7670";
hash = "sha256-XGgUphhI983eF8dBKOx4G3eR1uLVdLLd5ZfPqLhs4Kk=";
};
}
{
name = "1220b0c4f4a5f3df2b1268a9da04bc901ede4f8bd2938e846ee1e88783ed57cee79a";
path = fetchzip {
url = "https://github.com/freref/fzwatch/archive/refs/tags/v0.2.0.tar.gz";
hash = "sha256-U0MxoKnCBN6WCP6yqC3Qv9nnoQXtV+RcXtVEjCm7Puk=";
};
}
{
name = "1220dd654ef941fc76fd96f9ec6adadf83f69b9887a0d3f4ee5ac0a1a3e11be35cf5";
path = fetchgit {
url = "https://github.com/zigimg/zigimg";
rev = "3a667bdb3d7f0955a5a51c8468eac83210c1439e";
hash = "sha256-oLf3YH3yeg4ikVO/GahMCDRMTU31AHkfSnF4rt7xTKo=";
};
}
{
name = "1220feaa655e14cbb4baf59fe746f09a17fc6949be46ad64dd5044982f4fc1bb57c7";
path = fetchgit {
url = "https://github.com/rockorager/libvaxis";
rev = "1fd920a7aea1bb040c7c028f4bbf0af2ea58e1d1";
hash = "sha256-a9FWBDRn6/Wf1vekrzWBR+J3chySDEv++O8Iwewsdzs=";
};
}
] but this doesn't [mateidibu@precision5560:~/git/personal/fancy-cat]$ (cd ../zon2nix-matdibu && nix build) && ../zon2nix-matdibu/result/bin/zon2nix
Segmentation fault at address 0x41
???:?:?: 0x27917c in ??? ()
Unwind information for `:0x27917c` was not available, trace may be incomplete
Aborted (core dumped) |
running this works with [mateidibu@precision5560:~/git/personal/fancy-cat]$ ../zon2nix-matdibu/zig-out/bin/zon2nix but not
or
|
and as a note, |
and guess what, it works if I cherry-pick #21 |
@Ciflire all in all, I think that's a different issue (dependencies without any dependecies) |
fixes #11