Skip to content

Conversation

Enzime
Copy link
Member

@Enzime Enzime commented Aug 29, 2024

Fixes nix-community#347

Co-Authored-By: mangoiv <mail@mangoiv.com>
Copy link
Member

@phaer phaer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a tricky one IMO - ideally we'd have a flag or even feature detection for certain releases of nix. But the fact that we need different ssh store protocol for different commands complicates that.

I can't claim to have a good, up-to-date overview on the glitches of each of the ssh store protocols per nix/lix release either.

That being said, it looks like a good fix for real-world trouble, so merging for now is fine with me. Might be worth it to add a flag to use ssh-ng again nevertheless, but we can also do so later if needed.

Nit: not too familiar with the terraform module myself, but could that be solved by a subshell or so? Anything that doesn't require us to keep another list of variables consistent?

Due to the Terraform variables being passed to `run-nixos-anywhere.sh`
via environment variables, these environment variables wound up getting
passed to `nixos-anywhere`.

`nixos-anywhere` would then read the value `false` which would break
everything as it expects the variable to be unset or set to `y`, leading
to `disko_script` not being set.
@Enzime Enzime force-pushed the fix/build-on-remote branch from 9531b59 to a4cd5ed Compare September 2, 2024 02:32
@Enzime
Copy link
Member Author

Enzime commented Sep 2, 2024

I've updated the Terraform code to pass the arguments as one JSON environment variable instead 👍

@Enzime Enzime requested a review from phaer September 2, 2024 02:34
Copy link
Member

@phaer phaer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The formatter check doesn't seem happy yet. LGTM otherwise

@Enzime
Copy link
Member Author

Enzime commented Sep 16, 2024

Superseded by #383

@Enzime Enzime closed this Sep 16, 2024
@Enzime Enzime deleted the fix/build-on-remote branch September 16, 2024 10:49
@Enzime Enzime restored the fix/build-on-remote branch September 16, 2024 10: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.

[bug] nix-copy should not use ssh-ng because a nix bug makes it blow up
3 participants