Logo
Explore Help
Sign In
mirrors/brew
1
0
Fork 0
You've already forked brew
mirror of https://github.com/Homebrew/brew.git synced 2025-07-14 16:09:03 +08:00
Code Issues Packages Projects Releases Wiki Activity
brew/Library/Homebrew/extend/os/linux/api/analytics.rb

19 lines
390 B
Ruby
Raw Normal View History

Refactor API methods
2021-08-06 02:30:44 -04:00
# typed: false
# frozen_string_literal: true
module Homebrew
module API
module Analytics
class << self
def analytics_api_path
brew.sh: set HOMEBREW_FORCE_HOMEBREW_CORE_REPO_ON_LINUX when core repo is homebrew-core See https://github.com/Homebrew/install/pull/571 When the install script sets as https://github.com/Homebrew/homebrew-core, we need to use the homebrew-core bottle domain, and correctly set the HOMEBREW_CORE_DEFAULT_GIT_REMOTE below. This also fixes the brew doctor issue for new homebrew-core Linux installations Warning: Suspicious https://github.com/Homebrew/linuxbrew-core git origin remote found. The current git origin is: https://github.com/Homebrew/homebrew-core With a non-standard origin, Homebrew won't update properly. You can solve this by setting the origin remote: git -C "/home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core" remote set-url origin https://github.com/Homebrew/linuxbrew-core
2021-08-29 21:40:35 +02:00
return generic_analytics_api_path if
Homebrew::EnvConfig.force_homebrew_on_linux? ||
Homebrew::EnvConfig.force_homebrew_core_repo_on_linux?
Refactor API methods
2021-08-06 02:30:44 -04:00
"analytics-linux"
end
end
end
end
end
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 36ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API