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

Provide a conda subcommand plugin #81

Closed
2 tasks done
dholth opened this issue Dec 14, 2022 · 3 comments · Fixed by #131
Closed
2 tasks done

Provide a conda subcommand plugin #81

dholth opened this issue Dec 14, 2022 · 3 comments · Fixed by #131
Assignees
Labels
type::feature request for a new feature or capability

Comments

@dholth
Copy link
Contributor

dholth commented Dec 14, 2022

Checklist

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

What is the idea?

Conda has a new plugin system through which we can provide "conda index" (without using entry_points scripts). Provide one.

Will still need to figure out what to do about conda-build's "conda-index" script, which can also be called as "conda index".

Our command line arguments are necessarily different than legacy conda-index.

Why is this needed?

No response

What should happen?

No response

Additional Context

No response

@dholth dholth added the type::feature request for a new feature or capability label Dec 14, 2022
@dholth dholth assigned dholth and unassigned dholth Dec 14, 2022
@jezdez jezdez self-assigned this Dec 14, 2022
@barabo
Copy link
Contributor

barabo commented Mar 28, 2023

One possible use case would be to include the abilities to:

  • re-index a specific package
  • remove a package from the index
  • add a specific package to the index

@dholth
Copy link
Contributor Author

dholth commented Mar 28, 2023

@barabo standalone conda-index is fast as long as stat'ing all the files is not a bottleneck (which it absolutely was for conda-forge on slow storage). It's designed so that you can subclass the part that does a listdir() and swap it out for a database query - listdir populates the database with a list of "currently available" files, then the index joins that list against the cached metadata for those files. It has to pull the index from its database, never from an existing repodata.json.

I haven't consulted the thesaurus to find a good replacement for the "index" name currently provided by conda-build, if we want to use the new, different click CLI.

@barabo
Copy link
Contributor

barabo commented Jun 7, 2023

If it would help, I can draft our more specific use cases / examples of what we would want a helper script / new functionality to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type::feature request for a new feature or capability
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants