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

feat(conda): detect licenses for environment.yml #6566

Closed
Tracked by #5949
DmitriyLewen opened this issue Apr 26, 2024 · 1 comment · Fixed by #6953
Closed
Tracked by #5949

feat(conda): detect licenses for environment.yml #6566

DmitriyLewen opened this issue Apr 26, 2024 · 1 comment · Fixed by #6953
Assignees
Milestone

Comments

@DmitriyLewen
Copy link
Contributor

DmitriyLewen commented Apr 26, 2024

Description

We can detect licenses from /opt/conda/envs/*/conda-meta/*.json files

@DmitriyLewen DmitriyLewen changed the title Licenses feat(conda): detect licenses for environment.yml Apr 26, 2024
@DmitriyLewen DmitriyLewen self-assigned this Apr 26, 2024
@DmitriyLewen
Copy link
Contributor Author

AFter inverstigation i realize that using /opt/conda/envs/*/conda-meta dir is unstable.
You can use prefix field to set directory for conda-meta (see https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#specifying-a-location-for-an-environment):

(/test) root@b02de14be7f3:/# conda env list
# conda environments:
#
base                     /opt/conda
                      *  /test

(/test) root@b02de14be7f3:/# ls -hl /opt/conda/envs/
total 0
(/test) root@b02de14be7f3:/# ls -hl /test/conda-meta/
total 3.0M
-rw-r--r-- 1 root root  866 Jun 19 10:21 _libgcc_mutex-0.1-main.json
-rw-r--r-- 1 root root 1.2K Jun 19 10:21 _openmp_mutex-5.1-1_gnu.json
...

But environment.yml contains prefix field. We can use this field to find conda-meta dir.

@knqyf263 knqyf263 added this to the v0.53.0 milestone Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants