brewkit icon indicating copy to clipboard operation
brewkit copied to clipboard

Trouble Creating a Package in PkgX Pantry with Private GitHub Repo

Open jubinmytheen opened this issue 2 years ago • 2 comments

I am encountering an issue when attempting to create a package using a private GitHub repository in the PkgX Pantry. When trying to build getting 404 error for the repo.

jubinmytheen avatar Nov 01 '23 05:11 jubinmytheen

I assume you mean for your (team's) use? Best bet is probably to try and use git+https URL with a configured GITHUB_TOKEN and a hard-coded version. That uses the git binary, so it's got a high probability chance.

If that doesn't work, then we'll need to dig into passing credentials into brewkit. You might be able to pull the sources to your cache manually, name them properly and be good, but I bet that doesn't work very well. If you have the package.yaml, the. brewkit/libexec/query.ts pkgname --src should show you where it's expected to be found. You can look in pkg-build for more insight there.

One option for this might be adding a handler for file:// urls to distributable. This would be for individual users, since everything publicly packaged is FOSS.

Moving this to pkgxdev/brewkit for better relevance.

jhheider avatar Nov 01 '23 07:11 jhheider

What are you trying to achieve? A private separate pantry? Something else?

mxcl avatar Nov 02 '23 19:11 mxcl