Skip to content
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

om ci: Include systems (and flake) in result JSON #338

Merged
merged 1 commit into from
Nov 4, 2024
Merged

Conversation

srid
Copy link
Member

@srid srid commented Nov 1, 2024

This breaks backwards compatibility.


Necessary towards: juspay/cachix-push#8

$ jq -r --arg prefix "$(git branch --show-current)" 'if (.systems | length) != 1 then error("systems array must have exactly 1 element") else .systems[0] as $sys | .result.ROOT.build.byName | with_entries(.key = "\($prefix)-" + .key + "-\($sys)") | to_entries[] | [.key, .value] | .[] end' < json | xargs -n2 echo cachix pin mycache
cachix pin mycache main-ghc-shell-for-packages-0-x86_64-linux /nix/store/jx8rx1x2acn3r6jdwnp9cg4kjam9apyi-ghc-shell-for-packages-0
cachix pin mycache main-bar-x86_64-linux /nix/store/ckb05d6n10sammn4x2x9gqfwxnx5vhbg-bar-0.1.0.0
cachix pin mycache main-foo-x86_64-linux /nix/store/98sm6nw32jlhc9br83703zfxqk3d6ccx-foo-0.1.0.0

This breaks backwards compatibility.
@srid srid marked this pull request as ready for review November 4, 2024 19:48
@srid srid merged commit 68db254 into main Nov 4, 2024
5 checks passed
@srid srid deleted the om-ci-json-system branch November 4, 2024 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant