Skip to content

tests: quote PATH in external-builders test heredoc#15267

Merged
Ericson2314 merged 1 commit intoNixOS:masterfrom
obsidiansystems:fix-external-builders-path
Feb 17, 2026
Merged

tests: quote PATH in external-builders test heredoc#15267
Ericson2314 merged 1 commit intoNixOS:masterfrom
obsidiansystems:fix-external-builders-path

Conversation

@amaanq
Copy link
Member

@amaanq amaanq commented Feb 17, 2026

Motivation

The external-builders test expands $PATH into a heredoc without quotes,
so any PATH entry containing spaces (e.g. "Application Support/carapace")
causes bash to parse the line as a command instead of an assignment. This
breaks the test on any macOS system with such entries.

Context

I was testing out #15244 on my Mac and noticed the external-builders test failing due to this. The PATH env variable on my Mac does have a space, thanks to the Application Support directory.


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

@amaanq amaanq requested a review from edolstra as a code owner February 17, 2026 01:18
@github-actions github-actions bot added the with-tests Issues related to testing. PRs with tests have some priority label Feb 17, 2026
The external-builders test expands `$PATH` into a heredoc without quotes,
so any `PATH` entry containing spaces causes bash to parse the line as a
command instead of an assignment, failing the test.
@amaanq amaanq force-pushed the fix-external-builders-path branch from 553a24f to 0b7629d Compare February 17, 2026 04:20
@Ericson2314 Ericson2314 added this pull request to the merge queue Feb 17, 2026
Merged via the queue into NixOS:master with commit 509694d Feb 17, 2026
14 checks passed
@Ericson2314 Ericson2314 deleted the fix-external-builders-path branch February 17, 2026 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

with-tests Issues related to testing. PRs with tests have some priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants