-
Notifications
You must be signed in to change notification settings - Fork 26
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
Private repository releases support #65
Comments
I am interested in picking this up. @philss, do you have any thoughts on the best approach to take? Any specific config fields you have in mind or should I just come up with something myself? |
I think we could accept a tuple of |
I propose accepting a function (for example in the format However, an issue with accepting I also found an issue with following redirects to S3. |
Alright, I'll get on it. |
The :base_url attribute now accepts static headers or a custom function that returns a URL and headers. This allows us to fetch NIFs from more complicated sources, rather than just public GitHub releases.
The :base_url attribute now accepts static headers or a custom function that returns a URL and headers. This allows us to fetch NIFs from more complicated sources, rather than just public GitHub releases. Co-authored-by: Philip Sampaio <[email protected]>
* Add support for headers and dynamic base URL (#65) The :base_url attribute now accepts static headers or a custom function that returns a URL and headers. This allows us to fetch NIFs from more complicated sources, rather than just public GitHub releases. * Apply suggestions from code review * Enable config validation in tests Previously the `RustlerPrecompiled.Config` struct was initialized directly in the tests, which bypassed the validation in `new/1`. This change updates the tests to use `new/1` wherever possible. Some tests still use direct struct access to test invalid values.
This issue was covered #26 but I was not able to get it to work so wanted to double check if the solution is still correct and if you have any advice:
When hosting a Rust dependency in a private repository and using
rustler_precompiled
, if there is no plans to publish tohex
package how can the downstreamMix
project fetch therelease
as thebase_url
is private and not authenticaiton details are passed through?Our
rustler_precompiled
setup has a correct release +checksum-*
file etc and works when the project is madepublic
but not ifprivate
. The same downstream project is able to pull from the private repo using aGitHub
token and compile it but just notrustler_precompiled
.My understanding from a quick glance at the GitHub docs is that
rustler_precompiled
would need to pass the GitHub Personal Access Token (PAT) through and use the API. This StackOverflow answer also covers it.The text was updated successfully, but these errors were encountered: