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

regression 0.5.0: exec: --: invalid option #26

Closed
psarka opened this issue Feb 1, 2024 · 0 comments
Closed

regression 0.5.0: exec: --: invalid option #26

psarka opened this issue Feb 1, 2024 · 0 comments

Comments

@psarka
Copy link

psarka commented Feb 1, 2024

Thank you for this wonderful plugin! ❤️ I think there is a bug in 0.5.0 release: given this hatch.toml file:

[envs.default]
type = "conda"
command = "micromamba"
conda-forge = true
python = "3.11"
dependencies = [
    "pytest",
]
[envs.default.scripts]
test = "pytest {args:tests}"                                                                 

I'm getting this error:

(base) mambauser@fa31ffab1c07:/app$ hatch run test
/tmp/mambaf7hu9uwI2iI: line 5: exec: --: invalid option
exec: usage: exec [-cl] [-a name] [command [argument ...]] [redirection ...]

It works as expected in version 0.4.1, and only fails with 0.5.0. Full reproducer (after saving above hatch.toml into file):

docker run --rm -v `pwd`:/app -w /app -it mambaorg/micromamba:1.4.3-bullseye-slim /bin/bash
micromamba install -y -c conda-forge hatch
pip install hatch-conda
hatch run test
OldGrumpyViking added a commit that referenced this issue Feb 1, 2024
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

No branches or pull requests

1 participant