Skip to content

Comments

[Backport release-23.05] lib: modules.sh should check JSON output for predictability#275500

Closed
github-actions[bot] wants to merge 1 commit intorelease-23.05from
backport-275264-to-release-23.05
Closed

[Backport release-23.05] lib: modules.sh should check JSON output for predictability#275500
github-actions[bot] wants to merge 1 commit intorelease-23.05from
backport-275264-to-release-23.05

Conversation

@github-actions
Copy link
Contributor

Bot-based backport to release-23.05, triggered by a label in #275264.

  • Before merging, ensure that this backport is acceptable for the release.
    • Even as a non-commiter, if you find that it is not acceptable, leave a comment.

Currently, the `lib/tests/modules.sh` test checks the output of
`nix-instantiate --eval` without `--json`, which outputs an unspecified
human-readable format.

This patch modifies `modules.sh` to use the `--json` output instead, to
be robust against future changes to `nix-instantiate` output.

(cherry picked from commit fa9727c)
@infinisil
Copy link
Member

Was already backported to staging, see #275264 (comment)

@infinisil infinisil closed this Dec 19, 2023
@infinisil infinisil deleted the backport-275264-to-release-23.05 branch December 19, 2023 21:20
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.

2 participants