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

Abstract the fetching mechanism #4

Open
Araq opened this issue Jun 9, 2023 · 2 comments
Open

Abstract the fetching mechanism #4

Araq opened this issue Jun 9, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@Araq
Copy link
Member

Araq commented Jun 9, 2023

The fetcher is the component that does the following:

  • first rewrite the URL
  • then depending on the URL, use git or hg or nimgrab or curl or wget ...
@Araq Araq added the enhancement New feature or request label Jun 9, 2023
@elcritch
Copy link
Contributor

Overloading from the URL is bit tricky in general as outside of known sites like github or gitlab it can be difficult to determine if it's git vs hg.

Mercurial projects don't seem to include a .hg in their URLs from what searching I've seen.

So worse case I think you'd need a way to for users to manually specify the type in case the default URL parsing fails to detect the resource type.

@Araq
Copy link
Member Author

Araq commented Jun 21, 2023

Pip uses the git+https://... syntax iirc.

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

No branches or pull requests

2 participants