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

cache-environment does not put environment in the envs output #145

Open
DamianBarabonkovQC opened this issue Sep 14, 2023 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@DamianBarabonkovQC
Copy link

Problem Description:
Whenever using the flag cache-environment=true in the setup-micromamba CI step, the environment that was retrieved from cache is not added to the envs list of micromamba env list --json. This functionality is useful to determine the path of an environment by its name. However, if the environment is not in that list, the resolution fails, despite the environment existing.

Take any setup step with a cache-environment=true then run micromamba env list --json

      - name: Set up Conda env
        uses: mamba-org/setup-micromamba@5d5dbebd87f7b9358c403c7a66651fa92b310105
        with:
          cache-environment: true
          environment-file: environment.yml
    - name: List the installed envs
      run: |
        micromamba env list --json
      shell: bash -leo pipefail {0}
@pavelzw pavelzw added the enhancement New feature or request label Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants