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
nar-serve: init at 0.3.0 #95420
nar-serve: init at 0.3.0 #95420
Conversation
There are AWS tokens in this PR ... |
they are fake ones (borrowed from the minio.nix test) |
@Rizary I improved the tests a bit but it's still failing (see the commit message) |
@ofborg test nar-serve |
1 similar comment
@ofborg test nar-serve |
- HttpBinaryCacheStore (http://, https://) for binary caches via HTTP or HTTPS | ||
- S3BinaryCacheStore (s3://) for binary caches stored in Amazon S3 | ||
- LegacySSHStore (ssh://) for implement remote builds and nix-copy-closure | ||
- SSHStore (ssh-ng://) for arbitrary Nix operations on a remote machine via the same protocol used by nix-daemon |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nar-serve doesn't support the ssh protocols
- HttpBinaryCacheStore (http://, https://) for binary caches via HTTP or HTTPS | |
- S3BinaryCacheStore (s3://) for binary caches stored in Amazon S3 | |
- LegacySSHStore (ssh://) for implement remote builds and nix-copy-closure | |
- SSHStore (ssh-ng://) for arbitrary Nix operations on a remote machine via the same protocol used by nix-daemon | |
- http://, https:// for binary caches via HTTP or HTTPS | |
- s3:// for binary caches stored in Amazon S3 | |
- gs:// for binary caches stored in Google Cloud Storage |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does nar-serve
reimplement the store implementations? Seems better to use commands like nix cat-nar --store <...>
since then it would support all stores automatically.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a pure Go implementation at the moment. Having our own implementation will allow to add support for on-disk caching for example (that doesn't necessarily unpack the NAR file).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This also allowed us to easily add Google Cloud Storage as a supported backend.
b5260cc
to
0da57e6
Compare
Result of 1 package built:- nar-serve |
@ofborg test nar-serve |
|
What is the status of this PR? |
@ofborg test nar-serve |
still stuck on the NixOS test failing with a 500 error |
@zimbatm Seems to be green now. |
It's because the NixOS test is not being executed by ofborg. |
b8ffc92
to
ea7c46e
Compare
@ofborg test nar-serve |
@zimbatm I need your input regarding the test module.
Motivation for this change
initialize nar-serve and add the test for nar-serve
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)