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
mirror: Add packages/options data to channel release. #35
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
samueldr
force-pushed
the
feature/channel-json-data
branch
from
March 24, 2020 21:34
3284c6d
to
b5cccee
Compare
Let's keep this repository as accessible to contributors as possible!
This way, we can fully run the mirror script in dry-run mode.
They are thin wrappers over `system`, but two main points: * They log the (unescaped) command. * `run` will auto-die. This removes the need to pepper `== 0 or die` in the script.
samueldr
force-pushed
the
feature/channel-json-data
branch
from
March 25, 2020 02:25
b5cccee
to
0568ef3
Compare
Passing a list of parameters to `system` automatically gives us peace of mind with regards to shell escaping. This is because it will not rely on a shell invocation to run the given parameters, but directly exec to it. The left-over shell invocations all use redirection.
garbas
requested changes
Mar 25, 2020
samueldr
force-pushed
the
feature/channel-json-data
branch
from
March 25, 2020 19:40
8bf9d0c
to
3cd3da0
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Though, I heavily suggest you read the commits, there's more to this PR.
shell.nix
usingflake-compat
.system
use.I can reduce the scope of this PR to the basics needed for the json data if desired.
The new version was tested by forcing the download of incomplete evals. Note
latest
instead oflatest-finished
!The same could not be done for NixOS yet.
This will fail with current channels, as there is no options/packages json file. This was tested using this temp workaround.
I don't like discriminating on buildproducts by using
subtype
, as I assume subtypes could realistically be duplicated in a build.Though, we do not have a proper way to choose which build product.
For this build:
This is the buildproducts info:
The best alternative implementation, and more correct one, would be to allow passing a regex pattern to match on
path
, so evenname
could be duplicated. We know that a path can't.