Skip to content

Use portable shebang in .envrc template for NixOS compatibility#2747

Merged
savil merged 1 commit intojetify-com:mainfrom
abs:fix/envrc-shebang
Jan 15, 2026
Merged

Use portable shebang in .envrc template for NixOS compatibility#2747
savil merged 1 commit intojetify-com:mainfrom
abs:fix/envrc-shebang

Conversation

@abs
Copy link
Contributor

@abs abs commented Nov 26, 2025

Summary

NixOS does not have /bin/bash, so generated .envrc doesn't work. This changes /bin/bash to portable /usr/bin/env bash.

How was it tested?

Ran go build -o ./devbox-test ./cmd/devbox && ./devbox-test generate direnv && direnv reload && cat .envrc

Community Contribution License

All community contributions in this pull request are licensed to the project
maintainers under the terms of the
Apache 2 License.

By creating this pull request, I represent that I have the right to license the
contributions to the project maintainers under the Apache 2 License as stated in
the
Community Contribution License.

@abs abs force-pushed the fix/envrc-shebang branch from e7f1501 to 1c3d450 Compare November 26, 2025 15:59
@savil savil merged commit 89f380f into jetify-com:main Jan 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments