Comments (3)
Can I have more info on this new API, @dholth? I've seen there's a RepodataInterface
but that one doesn't check for the cache, right?
Ideally, what I'd like to use is a class (or a method of a class) that:
- Validates channel name / URL / path
- Checks if cache exists and is up-to-date.
- Load it from the cache if the point above is true
- Download from the remote otherwise, and populate the cache / states
- It should not attempt to parse the JSON
Do we have such a setup right now?
from conda-libmamba-solver.
This API is changing. https://github.com/conda/conda/pull/12090/files#diff-ff8022ba5d08310acbbc6f95e1bc77a53f69e00ffe6daa51026af8880f89612dR362
It's also demonstrated in this new test function https://github.com/conda/conda/blob/features/repodata-jlap/tests/gateways/test_jlap.py#L304 where you can ask SubdirData for the RepoInterface; pass it the state containing cache headers (now a class instead of a bare dict), and sometimes you get a "RepodataOnDisk" exception instead of the parsed json. Yes RepoInterface
checks/follows the caching rules. The caller is also responsible for writing the cache headers back to disk though.
What are we trying to accomplish?
Very soon we need to add API to deal with locking correctly, to do all the cache/update saved headers automatically, and to prefer either parsed or not-parsed json (sometimes the cache must parse repodata.json anyway and would otherwise write-to-disk-and-reread) so that the caller can avoid all extra json parsing.
from conda-libmamba-solver.
Closing as part of #59
from conda-libmamba-solver.
Related Issues (20)
- Scheduled upstream tests failed HOT 1
- Can't add additional packages to enviornment created from lock file HOT 3
- Scheduled tests failed HOT 1
- Scheduled tests failed HOT 1
- Scheduled tests failed HOT 1
- libmamba solver doesn't match when uninstalling with wildcard HOT 2
- Scheduled tests failed HOT 1
- [DX] Update `bashrc.sh` to be compatible with libmamba v2
- Scheduled tests failed HOT 1
- conda `fetch_latest_path` interface may still read repodata into memory HOT 2
- PluginError: Error while loading conda plugins from entrypoints: libarchive.so.19: cannot open shared object file: No such file or directory HOT 1
- `conda update --all` is not idempotent HOT 1
- Scheduled tests failed HOT 1
- `conda update --all` is not idempotent HOT 7
- Support for build_number in MatchSpec HOT 6
- PackagesNotFoundError listing more than missing package HOT 8
- Installing packages in different order gives totally different versions HOT 4
- Scheduled tests failed
- Error "No module named pip" with Python2.7 HOT 4
- libmamba picks a build for the wrong Python version
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from conda-libmamba-solver.