gitpkg icon indicating copy to clipboard operation
gitpkg copied to clipboard

`git` ≠ GitHub

Open toastal opened this issue 4 years ago • 0 comments

Your tool helped me solve an annoying problem trying to use a PR I pushed to a monorepo :+1: (as well as many others). Thanks.

My issue is the name of this tool. While stated clearly in the tag line

GitPkg enables you to use a sub directory in a GitHub repo as Yarn / NPM dependency.

and in

if (domain !== "github.com") {
  return {
    type: "error",
     errorType: "platform-not-supported",
     data,
  };
}

However, the project is called called gitpkg and git ≠ GitHub. The name is a bit misleading and right now isn't as flexible as it could be. Lots of open source projects are on GitLab, SourceHut, custom Gitea instance, et al. Some tooling, like npm, have a GitHub bias that username/repo#HASH is treated as GitHub, but you can still use git+https://gitlab.com/username/repo#HASH. All URLs and code should be fetchable using git instead of GitHub's specific REST API, no?

toastal avatar Feb 12 '21 09:02 toastal