Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upCarnix: 0.8 -> 0.9 #50923
Conversation
P-E-Meunier
added some commits
Nov 22, 2018
This comment has been minimized.
This comment has been minimized.
|
@GrahamcOfBorg build carnix cargo-vendor |
This comment has been minimized.
This comment has been minimized.
GrahamcOfBorg
commented
Nov 27, 2018
|
Success on x86_64-darwin (full log) Attempted: carnix, cargo-vendor Partial log (click to expand)
|
This comment has been minimized.
This comment has been minimized.
GrahamcOfBorg
commented
Nov 27, 2018
|
Success on x86_64-linux (full log) Attempted: carnix, cargo-vendor Partial log (click to expand)
|
dywedir
requested a review
from
Mic92
Nov 27, 2018
This comment has been minimized.
This comment has been minimized.
GrahamcOfBorg
commented
Nov 27, 2018
|
Success on aarch64-linux (full log) Attempted: carnix, cargo-vendor Partial log (click to expand)
|
This comment has been minimized.
This comment has been minimized.
|
This addition sounds great! $ carnix generate-crates-io crates-io.list
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error(Io(Custom { kind: InvalidData, error: StringError("stream did not contain valid UTF-8") }), State { next_error: N
one, backtrace: InternalBacktrace { backtrace: None } })', libcore/result.rs:1009:5
note: Run with `RUST_BACKTRACE=1` for a backtrace.
$ rm /home/joerg/.cargo/nix-cache
$ carnix generate-crates-io crates-io.list
Prefetching aho-corasick-0.6.8
Prefetching ansi_term-0.11.0
Prefetching argon2rs-0.2.5
Prefetching arrayvec-0.4.7I have not understood yet how the merge command is supposed to work. |
This comment has been minimized.
This comment has been minimized.
|
The cache has changed, it no longer needs sqlite and uses plain text instead. Carnix 0.9.1 has a bug in that part actually, which was fixed by Carnix 0.9.2. I'd prefer to keep working on compiling Rust to WASM using this before submitting a new PR.
The idea is that contributors submit the larger single I wonder what the Hydra will think of that. Will it speed up release mode deployments by pre-compiling common libraries? That would be very cool and would make Nix the most convenient platform for writing web services in Rust. |
This comment has been minimized.
This comment has been minimized.
|
Could you maybe add an better error message if somebody is using the sqlite file or change the name of the cache file? I had to use strace to find out why carnix failed to update for me, other people might not find out the reason for that. Can you make an concrete example how I have to run
|
P-E-Meunier commentedNov 22, 2018
Motivation for this change
Carnix 0.9 gives a way to merge the
crates-io.nixfrom different packages into a single package, in two different ways:crates-io.nixfrom that list, usingcarnix generate-crates-io crates-io.list.carnix merge, to merge the contents of multiple files (given on the standard input) into a single file.It would be very cool to have just a crates-io.list, and generate
crates-io.nixas a derivation. However:crates-io.nix) still needs acrates-io.nixto be compiled.carnix generate-crates-ioneeds to download all the packages in the list. Can we let Hydra do that?Things done
sandboxinnix.confon non-NixOS)nix-shell -p nox --run "nox-review wip"./result/bin/)nix path-info -Sbefore and after)