fix: 'fetch': key not found: "HOMEBREW_GITHUB_PACKAGES_AUTH" (KeyError) by jkroepke · Pull Request #21302 · Homebrew/brew
- Have you followed the guidelines in our Contributing document?
- Have you checked to ensure there aren't other open Pull Requests for the same change?
- Have you added an explanation of what your changes do and why you'd like us to include them?
- Have you written new tests for your changes? Here's an example.
- Have you successfully run
brew lgtm(style, typechecking and tests) with your changes locally?
Hi,
after #21278 was merged, I tested the main branch inside our company.
I can't tell what different since it published my initial PR, but now I got an error if I set HOMEBREW_DOCKER_REGISTRY_BASIC_AUTH_TOKEN to none:
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/global.rb:38:in 'fetch': key not found: "HOMEBREW_GITHUB_PACKAGES_AUTH" (KeyError)
from /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/global.rb:38:in '<top (required)>'
from /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/brew.rb:18:in 'Kernel#require_relative'
from /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/brew.rb:18:in '<main>'
After configure a default value in ENV.fetch, everything works as expected. (tested internally).