-
Notifications
You must be signed in to change notification settings - Fork 3
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
Flakes Implementation #124
Conversation
There's some conflicts with But some notes:
The nixpkgs upstream may move to accommodate more out-of-tree packaging for scalability reasons - the future is decentralized. |
Also everything in our |
3cd7ce1
to
622275d
Compare
This CI dry-run issue is very annoying. I don't understand why the runner doesn't have access to the |
622275d
to
ad129d7
Compare
Check if tmp actually exists. Run |
ad129d7
to
a8b3b7a
Compare
87ca1fa
to
bb70cee
Compare
Details
docker run -it --entrypoint /bin/bash c4d61a3b707b
bash-5.2# echo "" > /etc/nix/upload-to-cache.sh mkdir --parents "$(pwd)/tmp" export PATH="$(pwd)/dist/bin:$(npm root)/.bin:$PATH" npm install --ignore-scripts up to date, audited 741 packages in 680ms 168 packages are looking for funding found 0 vulnerabilities set +v |
Check the internals of upload to cache. It is supposed to upload to S3, nothing to do with nix I think. |
20541c3
to
b539266
Compare
Fast check found an error there.
|
There's been temperamental failures of some formatting tests since the main release work a while back. Not part of the scope here so it can be ignored. But needs to be addresses eventuallly. |
Seems like I'm taking this over and getting it merged today. Just need to sanity check all the jobs work and the build outputs. |
Yes for staging CI jobs too, only can be tested once merged. |
I've found some minor things with just getting my bearings.
I'm going to test the other build outputs. |
My thinking is that there are 2 kinds of builds:
When building The |
See https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-run - I think we're missing a attribute to be used to make |
We wouldn't want to switch Instead to override it, use It might work within the |
Something like:
|
PR will need to be squashed and ticked off above. |
This is going to break the build jobs. |
Just need to add |
I've fixed up the I've done the following.
|
Everything has been addressed and the CI has passed for the feature branch jobs. I'll move on to merging this and then testing the rest of the CI. If we run into any more CI job problems I'll fix them in the staging branch. |
3f07ede
to
00e532c
Compare
I've squashed everything. I'm going to do a quick once over and merge. |
I'd suggest changing to |
Okay I think I'm happy with everything that's changed in the flakes implementation, I like how its now got a clear separation between the executable package and the Nix specific package that can be ran. Although I do wish we didn't have to have such a separation, if and/or when we do get Nix execution for builds working using the bundled package I think we can remove some complexity here. Otherwise, its good. |
Description
This pull request adds flake support to Polykey-CLI, replacing the traditional "legacy" build system of Nix. It simplifies a lot of the Nix build codebase, and increases reproducability and reliability.
Tasks
Final checklist