You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[runx] Add support for github token, implement resolve (#171)
## Summary
This PR does a few things:
* Adds support for github token. This prevents rate-limiting when
getting `releases.json`
* Adds resolve to API. This will allow devbox to validate packages exist
and resolve versions in order to use lockfile.
@gcurtis I'm copying the devbox structure for the public interface (RunX
interface) but was curious if you would do it differently. Specifically,
we could remove the public interface and rename `impl` to just be `runx`
and use a struct:
```golang
runx.New(runx.Opts{
GithubAPIToken: "",
}).Install(...)
```
thoughts?
## How was it tested?
```
RUNX_GITHUB_API_TOKEN=<token> runx +jetpack-io/envsec envsec
RUNX_GITHUB_API_TOKEN=<token> pkg resolve jetpack-io/envsec@latest
RUNX_GITHUB_API_TOKEN=<token> pkg resolve jetpack-io/envsec@v0.0.3
```
0 commit comments