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

Trouble Creating a Package in PkgX Pantry with Private GitHub Repo #198

Open
jubinmytheen opened this issue Nov 1, 2023 · 2 comments
Open

Comments

@jubinmytheen
Copy link

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.

@jhheider
Copy link
Contributor

jhheider commented Nov 1, 2023

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 jhheider transferred this issue from pkgxdev/pantry Nov 1, 2023
@mxcl
Copy link
Member

mxcl commented Nov 2, 2023

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

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