-
Notifications
You must be signed in to change notification settings - Fork 20
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
environment-name
now is a mandatory argument
#54
Comments
It is mandatory if you use Edit: Oh, or do you simply not care about the environment name? |
I do and it is set when I call micromamba. When we don't have an environment file you are usually handling things with the CLI, with less magic. This change makes the "just get me micromamba" option a bit more complex. |
I see, good point. I think it is fine to not require a name if nothing is going to be installed. |
BTW the setup below is, IMO, a good setup b/c the lines in the yaml are almost dev install instructions: - name: Setup Mamba
uses: mamba-org/provision-with-micromamba@v11
with:
environment-file: false
- name: Python ${{ matrix.python-version }}
shell: bash -l {0}
run: |
micromamba create --name TEST python=${{ matrix.python-version }} --file requirements.txt --file requirements-dev.txt --channel conda-forge
micromamba activate TEST Sure I can add the env name there but it feels awkward b/c that option should exits only to override the name in the |
I got the same bug and agree with @ocefpaf. Our GA is at https://github.com/datamol-org/datamol/blob/a4b7cc16044ddb7d947e074a86ce5ffabf12eaec/.github/workflows/test.yml#L32 |
Can you test with the branch in the PR? |
Already did and it works for me. |
Thanks @jonashaag for the quick fix! |
It seems that
environment-name
now is a mandatory argument, even when usingenvironment-file: false
. That is a bit counter intuitive and a breaking change. I did not look into the details but how hard would be to maintain the old behavior and have the new changes? Maybe a defaultenvironment-name: nofile
?I believe this was introduced in #45 but I'm not sure. Trying to pin the GHA in all my CIs to get them back online.
The text was updated successfully, but these errors were encountered: