Public: anyone can read this; nobody can change it.

azure-gate: NixOS-safe bicep — nixpkgs#bicep on PATH + use_binary_from_path #153

opened this view on origin

Check · Review · Land · Live — It conflicts with its base. Next: builder, it conflicts with its base.

Merges on the origin

Run #395 (first run with the clone fixes from #145/#148) failed 50s into the Azure gate step:

2 files · +8 −1

waiting it conflicts with main in .forgejo/workflows/azure-gate.yml — bring the branch up to date and it can land

Check on open-platform/mitosis: passing, as of

Checks and the preview wait for a writer to approve this head

A guest

This pull comes from a guest: its preview runs without the app's variables or a forge token until a person who can write here approves it.

This pull waits for a person who can write here to review it; it never lands on its own.

opened this view on origin

Run #395 (first run with the clone fixes from #145/#148) failed 50s into the Azure gate step:

Could not start dynamically linked executable: .../hostexecutor/.azure/bin/bicep
NixOS cannot run dynamically linked executables intended for generic
linux environments out of the box.

az deployment group create transparently downloads its own bicep binary into AZURE_CONFIG_DIR/bin on first use. That binary is a generic dynamically linked Linux executable, and the vxrail-coldstart runner is a NixOS host — it cannot exec it (stub-ld). Teardown worked as designed: the RG was created and deleted within the same minute, nothing leaked.

Fix, two halves:

  • azure-gate.yml: add nixpkgs#bicep to the gate step's nix shell so a Nix-native bicep is on PATH. (Safety-net and janitor steps only run az group commands — no bicep needed there.)
  • gate.sh: after auth, az config set bicep.use_binary_from_path=true — but only when a bicep is already on PATH, so laptop runs keep az's default self-download behavior (which works fine on macOS/generic Linux).

🤖 Generated with Claude Code

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs