Skip to content

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

Description

@DamianBarabonkovQC

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}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions