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

Design specification for what a post based repodata fetching might look like #9

Open
mariusvniekerk opened this issue Jan 4, 2019 · 3 comments

Comments

@mariusvniekerk
Copy link
Contributor

One feature that we could theoretically look at would be to modify the behavior of conda so that instead of it just doing a GET to <CHANNEL_URL>/repodata.json.bz2 it instead does a post to the same url with an payload of the packages already present in the target environment

{
   'packages': [
      'python 3.7.1', ... 
   ]  
}

This would allow us to dynamically be able to generate the constained repodata without needing to resort to fairly gross url path based approaches.

@dhirschfeld
Copy link

dhirschfeld commented Jan 15, 2019

without needing to resort to fairly gross url path based approaches

Wouldn't url parameters be slightly less gross (assuming conda just passed them through)

<HOSTNAME>?channels=conda-forge,defaults&packages=pandas,ipython,scikit-learn

...though I think POST is probably a cleaner solution still.

@scopatz
Copy link
Contributor

scopatz commented Jan 15, 2019

That's the problem, conda doesn't just pass them through because it appends things like 'repodata.json' to to URL you provide

@mariusvniekerk
Copy link
Contributor Author

The cleanest short term api is a modification to conda that allows us to pass through this information as request headers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants