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

Error: uninitialized constant GitHub::HTTPNotFoundError #8

Open
henkosch opened this issue Aug 11, 2022 · 0 comments
Open

Error: uninitialized constant GitHub::HTTPNotFoundError #8

henkosch opened this issue Aug 11, 2022 · 0 comments
Assignees

Comments

@henkosch
Copy link
Member

I was trying to install truss-local with brew install truss-local but it gave me the following error:

henrik.schnell@LTG-HDJVJC2WCR bridge-talent-management % brew install truss-local
==> Downloading https://ghcr.io/v2/homebrew/core/pulumi/manifests/3.37.2
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/pulumi/blobs/sha256:177cf69db81db8e980af77ff44e3502592c0227019c912e8b46a216c009faba0
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:177cf69db81db8e980af77ff44e3502592c0227019c912e8b46a216c009faba0?se=2022-08-11T06%3A30%3A00Z&sig=MUGgfNVuTyODMFNNlSpSaHqZ%2F4qkcxbAHcwn8Jlt4e4%3D&sp=r&spr=https&sr=b
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/k3d/manifests/5.4.4
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/k3d/blobs/sha256:139a6b5277d77952b09929315d3f472c2c33e4dc518d5918beadde942fdd8113
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:139a6b5277d77952b09929315d3f472c2c33e4dc518d5918beadde942fdd8113?se=2022-08-11T06%3A30%3A00Z&sig=6c3YBNvI8rha1yT3VgvbKfQlpfXe%2FQ0ptmYbBBYjo64%3D&sp=r&spr=https&sr=b
######################################################################## 100.0%
Error: uninitialized constant GitHub::HTTPNotFoundError
/opt/homebrew/Library/Taps/get-bridge/homebrew-tap/download-strategy.rb:57:in `rescue in validate_github_repository_access!'
/opt/homebrew/Library/Taps/get-bridge/homebrew-tap/download-strategy.rb:54:in `validate_github_repository_access!'
/opt/homebrew/Library/Taps/get-bridge/homebrew-tap/download-strategy.rb:51:in `set_github_token'
/opt/homebrew/Library/Taps/get-bridge/homebrew-tap/download-strategy.rb:18:in `initialize'
/opt/homebrew/Library/Taps/get-bridge/homebrew-tap/download-strategy.rb:76:in `initialize'
/opt/homebrew/Library/Homebrew/resource.rb:56:in `new'
/opt/homebrew/Library/Homebrew/resource.rb:56:in `downloader'
/opt/homebrew/Library/Homebrew/resource.rb:152:in `fetch'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/forwardable.rb:230:in `fetch'
/opt/homebrew/Library/Homebrew/formula.rb:2131:in `fetch'
/opt/homebrew/Library/Homebrew/formula_installer.rb:1182:in `fetch'
/opt/homebrew/Library/Homebrew/install.rb:305:in `block in install_formulae'
/opt/homebrew/Library/Homebrew/install.rb:278:in `map'
/opt/homebrew/Library/Homebrew/install.rb:278:in `install_formulae'
/opt/homebrew/Library/Homebrew/cmd/install.rb:222:in `install'
/opt/homebrew/Library/Homebrew/brew.rb:93:in `<main>'

So I have found it in the source that the ruby rescue might be not working here:
https://github.com/get-bridge/homebrew-tap/blob/master/download-strategy.rb#L57

Of course I could fix it by fixing my github token on my machine, but it was a bit harder to find out from this error. Could this just be a typo somewhere?
https://rubydoc.brew.sh/GitHub/API/HTTPNotFoundError.html

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

2 participants