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

conda-lock github action step failing due to github action setup-miniconda step #411

Closed
scottyhq opened this issue Dec 6, 2022 · 2 comments · Fixed by #412
Closed

conda-lock github action step failing due to github action setup-miniconda step #411

scottyhq opened this issue Dec 6, 2022 · 2 comments · Fixed by #412

Comments

@scottyhq
Copy link
Member

scottyhq commented Dec 6, 2022

use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly!

Apparently this is now an issue since conda-forge no longer creates .tar.gz for packages by default (conda-incubator/setup-miniconda#267)

@yuvipanda I discovered this for the following error trying to lock the forge image in #408

Encountered problems while solving:
  - nothing provides requested apache-beam-with-gcp 2.43.0
@weiji14
Copy link
Member

weiji14 commented Dec 6, 2022

Is a cache needed in the CondaLock.yml workflow? I see only conda-lock and mamba being listed in environment-condalock.yml. In the CryoCloud hub-image, we're using:

      # Install conda-lock library
      - name: Install conda-lock
        run: pip install conda-lock

and running conda-lock lock --mamba -k explicit -f environment.yml -p linux-64 still works.

@scottyhq
Copy link
Member Author

scottyhq commented Dec 6, 2022

Is a cache needed in the CondaLock.yml workflow?

I don't think the package cache is, so will remove it. If I understand the above linked issues conda-forge packages used to always include .tar.gz files by default, but going forward only .conda files are generated. So creating the environment or generating a lock can fail for newer packages. See for example the apache-beam-with-gcp which includes .tar.gzs for 2.42, but not 2.43:
https://anaconda.org/conda-forge/apache-beam-with-gcp/files

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

Successfully merging a pull request may close this issue.

2 participants