Closed shopeonarope closed 1 year ago
Hey thanks for reporting this! I wonder why I didn't run into this during development. It sounds like you have and idea on how to fix this - do you think you could make a PR?
@marwanhawari this can be closed as it was address in https://github.com/marwanhawari/stew/pull/24. Also can you cut a new release that includes that change? Thanks!
First off love the tool. Thanks for your work.
I export my GITHUB_TOKEN and when I try to directly run
stew install private-org/repo
I get the spinner then:stew search private-org/repo
pulls up everything I'd expect; I select my repo and select the artifact version but then I get the same error as above.With my limited golang-fu I added
GODEBUG=http2debug=2
to get some more feedback about what was happening. When running the samesearch
as before I could see the http authorization header on the /search and /releases requests. However when it came to the /releases/download request there was no such header. And spelunking through the code I see thatInstall()
callsDownloadFile()
which just does a barehttp.Get
, if I'm not mistaken.