Skip to content

Conversation

Larry1123
Copy link
Contributor

@Larry1123 Larry1123 commented Oct 21, 2020

add source and workspace option to http urls fetched by TarballHttpFetcher

deprecate github url handling in plugin-git
add hook: addHandledHostRepository to exclude a pattern from being handled by plugin-git
remove special handling for github urls within gitUtils.normalizeRepoUrl It will be handled right in plugin-github when GithubFetcher is called.
update test for plugin-git
update GithubFetcher to offload fetching to plugin-http
add GithubResolver resolves http(s) github urls to tarball urls that are handled by plugin-http
update test in plugin-github
update githubUtils to support conversion of valid github http urls into tarball urls
deprecated providing a fetchHostedRepository hook in plugin-github
change plugin-github provides the hook addHandledHostedRepository
change plugin-github provides GithubFetcher and GithubResolver

What's the problem this PR addresses?

...

How did you fix it?

...

Checklist

  • I have set the packages that need to be released for my changes to be effective.
  • I will check that all automated PR checks pass before the PR gets reviewed.

…etcher`

deprecate github url handling in `plugin-git`
add hook: `addHandledHostRepository` to exclude a pattern from being handled by `plugin-git`
remove special handling for github urls within `gitUtils.normalizeRepoUrl` It will be handled right in `plugin-github` when `GithubFetcher` is called.
update test for `plugin-git`
update `GithubFetcher` to offload fetching to `plugin-http`
add `GithubResolver` resolves http(s) github urls to tarball urls that are handled by `plugin-http`
update test in `plugin-github`
update `githubUtils` to support conversion of valid github http urls into tarball urls
deprecated providing a `fetchHostedRepository` hook in `plugin-github`
change `plugin-github` provides the hook `addHandledHostedRepository`
change `plugin-github` provides `GithubFetcher` and `GithubResolver`
@arcanis
Copy link
Member

arcanis commented Oct 21, 2020

This approach doesn't work. It actually was similar to this in the past (the GitHub fetcher was a regular resolver/fetcher pair), but we need the hosted git urls to fallback to the classic clone if the url isn't reachable for some reason.

@Larry1123
Copy link
Contributor Author

That's quite understandable. I still feel like most of the changes here are for the better.
I'll remove the resolver, and change the hook. Still need to figure how to to even use the hook, the whole point here is so more plugins can be built to use this flow without being hard coded into plugin-git.

Copy link

@calbearox calbearox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

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

Successfully merging this pull request may close these issues.

3 participants