Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix nushell with --nom, make shell bits templated #62

Merged
merged 1 commit into from
Mar 18, 2024

Conversation

K900
Copy link
Contributor

@K900 K900 commented Mar 16, 2024

The nu template uses the executable very differently from others, so it ends up trying weird things like which nix-your-shell --nom, which fails because which doesn't understand --nom.

The other shell templates are also broken as shell scripts, because they rely on the nix-your-shell -> nix-your-shell $shell substitution.

Fix everything by using a real template engine.

The nu template uses the executable very differently from others,
so it ends up trying weird things like `which nix-your-shell --nom`,
which fails because `which` doesn't understand `--nom`.

The other shell templates are also broken as shell _scripts_, because
they rely on the `nix-your-shell` -> `nix-your-shell $shell` substitution.

Fix everything by using a real template engine.
@github-actions github-actions bot added the patch A patch-level change (backwards-compatible bug fixes) label Mar 16, 2024
@9999years
Copy link
Member

sickos yes

@9999years
Copy link
Member

I kinda want to get some testing put in (#61) but I can probably just check this by hand to make sure that it works so we don't have to block on #61.

@9999years
Copy link
Member

Tested this locally, looks good!

@9999years 9999years merged commit 6265214 into MercuryTechnologies:main Mar 18, 2024
4 checks passed
@9999years
Copy link
Member

$5 if you can tell me why the 'update versions and push a release PR' job failed lmao https://github.com/MercuryTechnologies/nix-your-shell/actions/runs/8330184312/job/22799988945

@K900
Copy link
Contributor Author

K900 commented Mar 19, 2024

Sorry, I know absolutely nothing about Github actions :(

@9999years
Copy link
Member

OK I got the release pipeline fixed, tagged here https://github.com/MercuryTechnologies/nix-your-shell/releases/tag/v1.4.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch A patch-level change (backwards-compatible bug fixes)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants