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

The channeldata.json file in the channel is not updated by running the conda index command #106

Open
2 tasks done
zhuwqvip opened this issue Jun 14, 2023 · 4 comments
Open
2 tasks done
Labels
source::community catch-all for issues filed by community members type::feature request for a new feature or capability

Comments

@zhuwqvip
Copy link

Checklist

  • I added a descriptive title
  • I searched open requests and couldn't find a duplicate

What is the idea?

When I remove a conda package from the channel in the linux-64 directory, I run conda index. I found that channeldata.json in the channel has not been updated, and the deleted conda package is still stored in channeldata.json and index.html files. This is what I don't want. We then look at time to see that channeldata.json hasn't changed

[root@h19r3n31 condatest]# conda index .
[root@h19r3n31 condatest]# ll
-rw-r--r--. 1 root root 3806 6月 14 15:31 channeldata.json
drwxr-xr-x. 2 root root 4096 6月 14 14:23 icons
-rw-r--r--. 1 root root 3061 6月 14 15:34 index.html
drwxr-xr-x. 3 root root 4096 6月 14 15:34 linux-64
drwxr-xr-x. 3 root root 4096 6月 14 15:34 noarch

Why is this needed?

No response

What should happen?

No response

Additional Context

No response

@zhuwqvip zhuwqvip added the type::feature request for a new feature or capability label Jun 14, 2023
@travishathaway travishathaway added the source::community catch-all for issues filed by community members label Jun 14, 2023
@dholth
Copy link
Contributor

dholth commented Jun 14, 2023

Try python -m conda_index --channeldata .

Unfortunately channeldata has never been able to remove packages from channeldata.json. If you delete channeldata.json and regenerate that would solve the problem. This file is generated from every subdir combined so it would be slow to find removed packages.

I think the old conda index command should update channeldata.json by default, if that behaviour has changed that's a bug.

channeldata.json is only used by conda-build in specific situations.

This ticket belongs in https://github.com/conda/conda-index

@jezdez jezdez transferred this issue from conda/conda Jun 15, 2023
@dholth
Copy link
Contributor

dholth commented Sep 25, 2023

See also #53

@EBenkler
Copy link

EBenkler commented Feb 20, 2024

Try python -m conda_index --channeldata .

This actually works and updates channeldata.json and index.html in the channel folder.

I think the old conda index command should update channeldata.json by default, if that behaviour has changed that's a bug.

Instead, conda index does not update channeldata.json and index.html in the channel folder, so it seems this is indeed a bug.

@dholth
Copy link
Contributor

dholth commented Feb 21, 2024

The behavior, CLI and implementation of "conda index" has changed. It should be much faster than the older implementation but some adjustments will have to be made to scripts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
source::community catch-all for issues filed by community members type::feature request for a new feature or capability
Projects
Status: 🆕 New
Development

No branches or pull requests

4 participants