homebrew 总是走ghcr.io
ErnestDong opened this issue · comments
请问我是哪里设置有问题吗?谢谢
系统:macOS 13.2
➜ brew update
HOMEBREW_BREW_GIT_REMOTE set: using https://mirrors.ustc.edu.cn/brew.git for Homebrew/brew Git remote.
HOMEBREW_CORE_GIT_REMOTE set: using https://mirrors.ustc.edu.cn/homebrew-core.git for Homebrew/core Git remote.
Already up-to-date.
~ took 9s
➜ brew doctor
Your system is ready to brew.
~ took 10s
➜ brew config
HOMEBREW_VERSION: 3.6.20-264-g8edf681
ORIGIN: https://mirrors.ustc.edu.cn/brew.git
HEAD: 8edf6811753cfa7298860a4427e887354551f07b
Last commit: 79 minutes ago
Core tap origin: https://mirrors.ustc.edu.cn/homebrew-core.git
Core tap HEAD: 7946479053ec814e273b81063d81ac3a64763c8d
Core tap last commit: 23 hours ago
Core tap branch: master
Core tap JSON: 06 Feb 10:20 UTC
HOMEBREW_PREFIX: /usr/local
HOMEBREW_BOTTLE_DOMAIN: https://mirrors.ustc.edu.cn/homebrew-bottles
HOMEBREW_BREW_GIT_REMOTE: https://mirrors.ustc.edu.cn/brew.git
HOMEBREW_CASK_OPTS: []
HOMEBREW_CORE_GIT_REMOTE: https://mirrors.ustc.edu.cn/homebrew-core.git
HOMEBREW_EDITOR: vim
HOMEBREW_MAKE_JOBS: 4
HOMEBREW_NO_AUTO_UPDATE: set
HOMEBREW_NO_ENV_HINTS: set
SUDO_ASKPASS: /Users/dcy/.local/share/pass/askpass.sh
Homebrew Ruby: 2.6.10 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: quad-core 64-bit kabylake
Clang: 14.0.0 build 1400
Git: 2.39.1 => /usr/local/bin/git
Curl: 7.86.0 => /usr/bin/curl
macOS: 13.2-x86_64
CLT: 14.2.0.0.1.1668646533
Xcode: N/A
~ took 3s
➜ brew install neovim
==> Fetching dependencies for neovim: unibilium, libtermkey, libvterm, luajit, luv, msgpack and tree-sitter
==> Fetching unibilium
==> Downloading https://ghcr.io/v2/homebrew/core/unibilium/manifests/2.1.1
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/unibilium/blobs/sha256:8348c94e
^C
我测试了一下,目前由于 brew 版本升级,需要添加 HOMEBREW_NO_INSTALL_FROM_API=1
环境变量,bottles 才会从镜像站下载。不清楚在镜像站一端要如何实现 brew 的这个新的 API。
我测试了一下,目前由于 brew 版本升级,需要添加
HOMEBREW_NO_INSTALL_FROM_API=1
环境变量,bottles 才会从镜像站下载。不清楚在镜像站一端要如何实现 brew 的这个新的 API。
感谢回复!确实解决了我的问题!非常感谢
新的 API 弄好了,可以参考 https://mirrors.ustc.edu.cn/help/homebrew-bottles.html 配置 HOMEBREW_API_DOMAIN
试一下是否正常。