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

Option to filter repodata by date #1214

Open
maresb opened this issue Oct 13, 2021 · 1 comment
Open

Option to filter repodata by date #1214

maresb opened this issue Oct 13, 2021 · 1 comment
Labels
type::feature-request New feature proposal

Comments

@maresb
Copy link
Contributor

maresb commented Oct 13, 2021

Would it be feasible to add a "publish_date ≤" filter so that mamba would effectively invoke the solver as if it were running on a date in the past?

It's a common problem that beginners forget to conda-lock or pip freeze their requirements, and their code no longer runs with up-to-date versions. In such situations, such a filter would be extremely useful, effectively acting as a time machine.

Assuming the solver is more-or-less fed the contents of repodata.json, would it simply be a matter of filtering on the timestamp property? (I checked, and 97.6% of packages in conda-forge's noarch repodata have the timestamp property. The earilest timestamp is from April 18, 2018.)

I originally asked about this in:
conda/conda-lock#112

@wolfv
Copy link
Member

wolfv commented Oct 13, 2021

Yes, it should be possible. For proper support we may want to add this to libsolv.

Ps it's also something we've been thinking about!

@jonashaag jonashaag added the type::feature-request New feature proposal label Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type::feature-request New feature proposal
Projects
None yet
Development

No branches or pull requests

3 participants