language stringclasses 1
value | owner stringlengths 2 15 | repo stringlengths 2 21 | sha stringlengths 45 45 | message stringlengths 7 36.3k | path stringlengths 1 199 | patch stringlengths 15 102k | is_multipart bool 2
classes |
|---|---|---|---|---|---|---|---|
Other | Homebrew | brew | 07639e8cebd5c791ab3bee9f6f4802688c3e5fe4.json | write_image_index: Remove Docker mediaType
Remove `mediaType: "application/vnd.docker.distribution.manifest.list.v2+json"`
previously needed for correct multi-arch display in GitHub Packages UI. | Library/Homebrew/github_packages.rb | @@ -340,8 +340,6 @@ def write_image_config(platform_hash, tar_sha256, blobs)
def write_image_index(manifests, blobs, annotations)
image_index = {
- # Currently needed for correct multi-arch display in GitHub Packages UI
- mediaType: "application/vnd.docker.distribution.manifest.list.v2+json",
... | false |
Other | Homebrew | brew | 9f9403b753aece5347d6bc698b9c0d77725ea13d.json | Add flags for Codecov | .github/workflows/tests.yml | @@ -216,6 +216,7 @@ jobs:
- uses: codecov/codecov-action@e156083f13aff6830c92fc5faa23505779fbf649 # v1.2.1
with:
directory: /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/test/coverage
+ flags: ${{ matrix.name }}
test-default-formula-linux:
name: test default formula ... | false |
Other | Homebrew | brew | ec20eb604d03f7283ae2b85e1b1038ab1298cae7.json | utils/gitub/api: fix incorrect error when unauthenticated | Library/Homebrew/utils/github/api.rb | @@ -63,7 +63,7 @@ def pretty_ratelimit_reset(reset)
class AuthenticationFailedError < Error
def initialize(github_message)
@github_message = github_message
- message = +"GitHub #{github_message}:"
+ message = +"GitHub API Error: #{github_message}\n"
message << if Homebrew::En... | false |
Other | Homebrew | brew | 69cf697e2ee94ec7e793d5022bbe9e9f1d09ab15.json | Remove Audacity from denylist.rb | Library/Homebrew/cask/denylist.rb | @@ -13,8 +13,6 @@ def self.reason(name)
case name
when /^adobe-(after|illustrator|indesign|photoshop|premiere)/
"Adobe casks were removed because they are too difficult to maintain."
- when /^audacity$/
- "Audacity was removed because it is too difficult to download programmatically."... | false |
Other | Homebrew | brew | f04404a9f54062340d7cccbefc3b69547c5488c6.json | Update RBI files for tapioca. | Library/Homebrew/sorbet/rbi/gems/tapioca@0.4.20.rbi | @@ -460,8 +460,8 @@ class Tapioca::Generator < ::Thor::Shell::Color
sig { params(config: Tapioca::Config).void }
def initialize(config); end
- sig { params(requested_constants: T::Array[String], should_verify: T::Boolean).void }
- def build_dsl(requested_constants, should_verify: T.unsafe(nil)); end
+ sig { ... | true |
Other | Homebrew | brew | f04404a9f54062340d7cccbefc3b69547c5488c6.json | Update RBI files for tapioca. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -29673,6 +29673,21 @@ module URI
def self.get_encoding(label); end
end
+module URL::BlockDSL::PageWithURL
+ extend ::T::Private::Methods::MethodHooks
+ extend ::T::Private::Methods::SingletonMethodHooks
+end
+
+class URL::BlockDSL
+ extend ::T::Private::Methods::MethodHooks
+ extend ::T::Private::Methods::... | true |
Other | Homebrew | brew | 64183fac5c5b751f773d0953cb65e9528a185961.json | Update RBI files for mechanize. | Library/Homebrew/sorbet/rbi/gems/addressable@2.7.0.rbi | @@ -0,0 +1,290 @@
+# DO NOT EDIT MANUALLY
+# This is an autogenerated file for types exported from the `addressable` gem.
+# Please instead update this file by running `bin/tapioca sync`.
+
+# typed: true
+
+module Addressable
+end
+
+module Addressable::IDNA
+ class << self
+ def to_ascii(input); end
+ def to_u... | true |
Other | Homebrew | brew | 64183fac5c5b751f773d0953cb65e9528a185961.json | Update RBI files for mechanize. | Library/Homebrew/sorbet/rbi/gems/mechanize@2.8.0.rbi | @@ -1,6 +1,6 @@
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `mechanize` gem.
-# Please instead update this file by running `tapioca sync`.
+# Please instead update this file by running `bin/tapioca sync`.
# typed: true
@@ -293,6 +293,7 @@ class Mechanize::FileResponse
de... | true |
Other | Homebrew | brew | 64183fac5c5b751f773d0953cb65e9528a185961.json | Update RBI files for mechanize. | Library/Homebrew/sorbet/rbi/gems/mime-types-data@3.2021.0225.rbi | @@ -1,6 +1,6 @@
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `mime-types-data` gem.
-# Please instead update this file by running `tapioca sync`.
+# Please instead update this file by running `bin/tapioca sync`.
# typed: true
| true |
Other | Homebrew | brew | 64183fac5c5b751f773d0953cb65e9528a185961.json | Update RBI files for mechanize. | Library/Homebrew/sorbet/rbi/gems/public_suffix@4.0.6.rbi | @@ -0,0 +1,152 @@
+# DO NOT EDIT MANUALLY
+# This is an autogenerated file for types exported from the `public_suffix` gem.
+# Please instead update this file by running `bin/tapioca sync`.
+
+# typed: true
+
+module PublicSuffix
+ class << self
+ def decompose(name, rule); end
+ def domain(name, **options); end... | true |
Other | Homebrew | brew | 64183fac5c5b751f773d0953cb65e9528a185961.json | Update RBI files for mechanize. | Library/Homebrew/sorbet/rbi/gems/rubyntlm@0.6.3.rbi | @@ -1,15 +1,14 @@
# DO NOT EDIT MANUALLY
-# This is an autogenerated file for types exported from the `ntlm-http` gem.
-# Please instead update this file by running `tapioca generate --exclude json`.
+# This is an autogenerated file for types exported from the `rubyntlm` gem.
+# Please instead update this file by runn... | true |
Other | Homebrew | brew | 64183fac5c5b751f773d0953cb65e9528a185961.json | Update RBI files for mechanize. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -2685,6 +2685,104 @@ module ActiveSupport
def self.version(); end
end
+class Addressable::Template
+ def ==(template); end
+
+ def eql?(template); end
+
+ def expand(mapping, processor=T.unsafe(nil), normalize_values=T.unsafe(nil)); end
+
+ def extract(uri, processor=T.unsafe(nil)); end
+
+ def generate(p... | true |
Other | Homebrew | brew | abe7cd3edfe34877602a7a13432fe0e08f057f44.json | sorbet: Update RBI files.
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -29673,6 +29673,21 @@ module URI
def self.get_encoding(label); end
end
+module URL::BlockDSL::PageWithURL
+ extend ::T::Private::Methods::MethodHooks
+ extend ::T::Private::Methods::SingletonMethodHooks
+end
+
+class URL::BlockDSL
+ extend ::T::Private::Methods::MethodHooks
+ extend ::T::Private::Methods::... | false |
Other | Homebrew | brew | 8aa0939c531c2c035acdea74f76eafff3dfeda62.json | workflows/{sorbet,spdx}: use origin_branch with git-try-push | .github/workflows/sorbet.yml | @@ -41,7 +41,7 @@ jobs:
if git ls-remote --exit-code --heads origin "$BRANCH"; then
git checkout "$BRANCH"
- git reset origin/master
+ git reset --hard origin/master
else
git checkout -B "$BRANCH" origin/master
BRANCH_EXISTS="1"
@@ -64... | true |
Other | Homebrew | brew | 8aa0939c531c2c035acdea74f76eafff3dfeda62.json | workflows/{sorbet,spdx}: use origin_branch with git-try-push | .github/workflows/spdx.yml | @@ -40,7 +40,7 @@ jobs:
if git ls-remote --exit-code --heads origin "$BRANCH"; then
git checkout "$BRANCH"
- git reset origin/master
+ git reset --hard origin/master
else
git checkout -B "$BRANCH" origin/master
BRANCH_EXISTS="1"
@@ -62... | true |
Other | Homebrew | brew | c2c93d1cc9e436db0e0ff18c39e017d7ba5abf57.json | Run `shellcheck` on cask utils and shim scripts. | Library/Homebrew/shims/linux/super/make | @@ -7,7 +7,7 @@ pathremove() {
NEWPATH=${NEWPATH:+$NEWPATH:}$DIR
fi
done
- export $PATHVARIABLE="$NEWPATH"
+ export "$PATHVARIABLE"="$NEWPATH"
}
if [[ -n "$HOMEBREW_MAKE" && "$HOMEBREW_MAKE" != "make" ]]
@@ -16,7 +16,8 @@ then
else
SAVED_PATH="$PATH"
... | true |
Other | Homebrew | brew | c2c93d1cc9e436db0e0ff18c39e017d7ba5abf57.json | Run `shellcheck` on cask utils and shim scripts. | Library/Homebrew/shims/mac/super/ruby | @@ -1,6 +1,9 @@
#!/bin/bash
+
# System Ruby's mkmf on Mojave (10.14) and later require SDKROOT set to work correctly.
+# Don't need shellcheck to follow the `source`.
+# shellcheck disable=SC1090
source "$HOMEBREW_LIBRARY/Homebrew/shims/utils.sh"
try_exec_non_system "$SHIM_FILE" "$@" | true |
Other | Homebrew | brew | c2c93d1cc9e436db0e0ff18c39e017d7ba5abf57.json | Run `shellcheck` on cask utils and shim scripts. | Library/Homebrew/shims/mac/super/xcrun | @@ -1,4 +1,5 @@
#!/bin/bash
+
# Historically, xcrun has had various bugs, and in some cases it didn't
# work at all (e.g. CLT-only in the Xcode 4.3 era). This script emulates
# it and attempts to avoid these issues.
@@ -27,18 +28,18 @@ arg0=$1
shift
exe="/usr/bin/${arg0}"
-if [ -x "$exe" ]; then
- if [ -n "$HO... | true |
Other | Homebrew | brew | c2c93d1cc9e436db0e0ff18c39e017d7ba5abf57.json | Run `shellcheck` on cask utils and shim scripts. | Library/Homebrew/shims/scm/git | @@ -9,6 +9,8 @@ then
exit 1
fi
+# Don't need shellcheck to follow the `source`.
+# shellcheck disable=SC1090
source "$HOMEBREW_LIBRARY/Homebrew/shims/utils.sh"
case "$(lowercase "$SHIM_FILE")" in | true |
Other | Homebrew | brew | c2c93d1cc9e436db0e0ff18c39e017d7ba5abf57.json | Run `shellcheck` on cask utils and shim scripts. | Library/Homebrew/shims/utils.sh | @@ -60,8 +60,10 @@ safe_exec() {
fi
if [[ "$HOMEBREW" = "print-path" ]]
then
- local dir="$(quiet_safe_cd "${arg0%/*}/" && pwd)"
- local path="$(dirbasepath "$dir" "$arg0")"
+ local dir
+ dir="$(quiet_safe_cd "${arg0%/*}/" && pwd)"
+ local path
+ path="$(dirbasepath "$dir" "$arg0")"
echo... | true |
Other | Homebrew | brew | c2c93d1cc9e436db0e0ff18c39e017d7ba5abf57.json | Run `shellcheck` on cask utils and shim scripts. | Library/Homebrew/style.rb | @@ -177,13 +177,16 @@ def run_shellcheck(files, output_type)
files = [
HOMEBREW_BREW_FILE,
# TODO: HOMEBREW_REPOSITORY/"completions/bash/brew",
- *Pathname.glob("#{HOMEBREW_LIBRARY}/Homebrew/*.sh"),
- *Pathname.glob("#{HOMEBREW_LIBRARY}/Homebrew/cmd/*.sh"),
- *P... | true |
Other | Homebrew | brew | 5aa0dbe1f96f0528e3a9662fb1a5dbe29ddf56ca.json | Move `RMDIR_SH` into separate file. | Library/Homebrew/cask/pkg.rb | @@ -107,54 +107,14 @@ def special?(path)
# Helper script to delete empty directories after deleting `.DS_Store` files and broken symlinks.
# Needed in order to execute all file operations with `sudo`.
- RMDIR_SH = <<~'BASH'
- set -euo pipefail
-
- # Try removing as many empty directories as pos... | true |
Other | Homebrew | brew | 5aa0dbe1f96f0528e3a9662fb1a5dbe29ddf56ca.json | Move `RMDIR_SH` into separate file. | Library/Homebrew/cask/utils/rmdir.sh | @@ -0,0 +1,41 @@
+#!/bin/bash
+
+set -euo pipefail
+
+# Try removing as many empty directories as possible with a single
+# `rmdir` call to avoid or at least speed up the loop below.
+if /bin/rmdir -- "${@}" &>/dev/null; then
+ exit
+fi
+
+for path in "${@}"; do
+ symlink=true
+ [[ -L "${path}" ]] || symlink=false
+... | true |
Other | Homebrew | brew | 5aa0dbe1f96f0528e3a9662fb1a5dbe29ddf56ca.json | Move `RMDIR_SH` into separate file. | Library/Homebrew/test/cask/pkg_spec.rb | @@ -97,7 +97,7 @@
allow(fake_system_command).to receive(:run!).and_call_original
expect(fake_system_command).to receive(:run!).with(
"/usr/bin/xargs",
- args: ["-0", "--", "/bin/bash", "-c", a_string_including("/bin/rmdir"), "--"],
+ args: ["-0", "--", a_string_including("rmdir")]... | true |
Other | Homebrew | brew | ffba81f6770769adf139df65bb1985bfdf2e3352.json | Adjust `audit` spec. | Library/Homebrew/test/cask/audit_spec.rb | @@ -795,7 +795,17 @@ def tmp_cask(name, text)
end
end
- context "when doing the audit" do
+ context "when doing an offline audit" do
+ let(:online) { false }
+
+ it "does not evaluate the block" do
+ expect(run).not_to pass
+ end
+ end
+
+... | false |
Other | Homebrew | brew | 59dae75709bb27c704ec7834779aa8c0f045d5b2.json | Allow specifying committer for some `dev-cmd`s | Library/Homebrew/dev-cmd/bottle.rb | @@ -73,6 +73,8 @@ def bottle_args
switch "--only-json-tab",
depends_on: "--json",
description: "When passed with `--json`, the tab will be written to the JSON file but not the bottle."
+ flag "--committer=",
+ description: "Specify a committer name and email in `gi... | true |
Other | Homebrew | brew | 59dae75709bb27c704ec7834779aa8c0f045d5b2.json | Allow specifying committer for some `dev-cmd`s | Library/Homebrew/dev-cmd/pr-pull.rb | @@ -44,6 +44,8 @@ def pr_pull_args
switch "--warn-on-upload-failure",
description: "Warn instead of raising an error if the bottle upload fails. "\
"Useful for repairing bottle uploads that previously failed."
+ flag "--committer=",
+ description: "Spec... | true |
Other | Homebrew | brew | 59dae75709bb27c704ec7834779aa8c0f045d5b2.json | Allow specifying committer for some `dev-cmd`s | Library/Homebrew/dev-cmd/pr-upload.rb | @@ -30,6 +30,8 @@ def pr_upload_args
switch "--warn-on-upload-failure",
description: "Warn instead of raising an error if the bottle upload fails. "\
"Useful for repairing bottle uploads that previously failed."
+ flag "--committer=",
+ description: "Sp... | true |
Other | Homebrew | brew | 59dae75709bb27c704ec7834779aa8c0f045d5b2.json | Allow specifying committer for some `dev-cmd`s | Library/Homebrew/test/utils_spec.rb | @@ -210,6 +210,19 @@ def esc(code)
end
end
+ specify "#parse_author!" do
+ parse_error_msg = /Unable to parse name and email/
+
+ expect(parse_author!("John Doe <john.doe@example.com>"))
+ .to eq({ name: "John Doe", email: "john.doe@example.com" })
+ expect { parse_author!("") }
+ .to rais... | true |
Other | Homebrew | brew | 59dae75709bb27c704ec7834779aa8c0f045d5b2.json | Allow specifying committer for some `dev-cmd`s | Library/Homebrew/utils.rb | @@ -467,6 +467,13 @@ def paths
end.uniq.compact
end
+ def parse_author!(author)
+ /^(?<name>[^<]+?)[ \t]*<(?<email>[^>]+?)>$/ =~ author
+ raise "Unable to parse name and email." if name.blank? && email.blank?
+
+ { name: name, email: email }
+ end
+
def disk_usage_readable(size_in_bytes)
if... | true |
Other | Homebrew | brew | bba27eefec8a5bddd8ab123befa087670f128462.json | Use double quotes | Library/Homebrew/Gemfile | @@ -18,7 +18,7 @@ gem "rspec-wait", require: false
gem "rubocop", require: false
gem "rubocop-ast", require: false
gem "simplecov", require: false
-gem 'simplecov-cobertura', require: false
+gem "simplecov-cobertura", require: false
gem "sorbet", require: false
gem "sorbet-runtime", require: false
gem "tapioca", ... | true |
Other | Homebrew | brew | bba27eefec8a5bddd8ab123befa087670f128462.json | Use double quotes | Library/Homebrew/test/spec_helper.rb | @@ -3,7 +3,7 @@
if ENV["HOMEBREW_TESTS_COVERAGE"]
require "simplecov"
- require 'simplecov-cobertura'
+ require "simplecov-cobertura"
formatters = [
SimpleCov::Formatter::HTMLFormatter, | true |
Other | Homebrew | brew | c07205caf2146dfd3d496a4b887befb83ae04455.json | Adjust `audit` spec. | Library/Homebrew/test/cask/audit_spec.rb | @@ -795,7 +795,17 @@ def tmp_cask(name, text)
end
end
- context "when doing the audit" do
+ context "when doing an offline audit" do
+ let(:online) { false }
+
+ it "does not evaluate the block" do
+ expect(run).not_to pass
+ end
+ end
+
+... | false |
Other | Homebrew | brew | 0db0db95169a9d8437c8b058d9b82be40f1766b3.json | build_system_info: Use the host glibc version only
Use the host glibc version only to avoid errors with
brew tests --no-compat | Library/Homebrew/extend/os/linux/development_tools.rb | @@ -21,13 +21,7 @@ def default_compiler
end
def build_system_info
- brewed_glibc_version = begin
- Formula["glibc"].any_installed_version
- rescue FormulaUnavailableError
- nil
- end
- glibc_version = brewed_glibc_version || OS::Linux::Glibc.system_version
- generic_bu... | false |
Other | Homebrew | brew | 11bfba17628b57446283b12f37eaa6de622e0f94.json | build_info: Add glibc_version for Linux | Library/Homebrew/extend/os/linux/development_tools.rb | @@ -19,5 +19,15 @@ def locate(tool)
def default_compiler
:gcc
end
+
+ def build_system_info
+ brewed_glibc_version = begin
+ Formula["glibc"].any_installed_version
+ rescue FormulaUnavailableError
+ nil
+ end
+ glibc_version = brewed_glibc_version || OS::Linux::Glib... | false |
Other | Homebrew | brew | 53a7065bccfb1cec9286b32e7443c95a2423b62a.json | Allow specifying committer for some `dev-cmd`s | Library/Homebrew/dev-cmd/bottle.rb | @@ -73,6 +73,8 @@ def bottle_args
switch "--only-json-tab",
depends_on: "--json",
description: "When passed with `--json`, the tab will be written to the JSON file but not the bottle."
+ flag "--committer=",
+ description: "Specify a committer name and email in `gi... | true |
Other | Homebrew | brew | 53a7065bccfb1cec9286b32e7443c95a2423b62a.json | Allow specifying committer for some `dev-cmd`s | Library/Homebrew/dev-cmd/pr-pull.rb | @@ -44,6 +44,8 @@ def pr_pull_args
switch "--warn-on-upload-failure",
description: "Warn instead of raising an error if the bottle upload fails. "\
"Useful for repairing bottle uploads that previously failed."
+ flag "--committer=",
+ description: "Spec... | true |
Other | Homebrew | brew | 53a7065bccfb1cec9286b32e7443c95a2423b62a.json | Allow specifying committer for some `dev-cmd`s | Library/Homebrew/dev-cmd/pr-upload.rb | @@ -30,6 +30,8 @@ def pr_upload_args
switch "--warn-on-upload-failure",
description: "Warn instead of raising an error if the bottle upload fails. "\
"Useful for repairing bottle uploads that previously failed."
+ flag "--committer=",
+ description: "Sp... | true |
Other | Homebrew | brew | 53a7065bccfb1cec9286b32e7443c95a2423b62a.json | Allow specifying committer for some `dev-cmd`s | Library/Homebrew/test/utils_spec.rb | @@ -210,6 +210,19 @@ def esc(code)
end
end
+ specify "#parse_author!" do
+ parse_error_msg = /Unable to parse name and email/
+
+ expect(parse_author!("John Doe <john.doe@example.com>"))
+ .to eq({ name: "John Doe", email: "john.doe@example.com" })
+ expect { parse_author!("") }
+ .to rais... | true |
Other | Homebrew | brew | 53a7065bccfb1cec9286b32e7443c95a2423b62a.json | Allow specifying committer for some `dev-cmd`s | Library/Homebrew/utils.rb | @@ -467,6 +467,13 @@ def paths
end.uniq.compact
end
+ def parse_author!(author)
+ /^(?<name>[^<]+?)[ \t]*<(?<email>[^>]+?)>$/ =~ author
+ raise "Unable to parse name and email." if name.blank? && email.blank?
+
+ { name: name, email: email }
+ end
+
def disk_usage_readable(size_in_bytes)
if... | true |
Other | Homebrew | brew | 95b44eab4964c9b6ebf615a0fc58d013fb23582c.json | github_packages: adjust rebuild handling | Library/Homebrew/github_packages.rb | @@ -68,10 +68,18 @@ def upload_bottles(bottles_hash, dry_run:)
end
end
- def self.version_rebuild(version, rebuild)
- return version.to_s unless rebuild.to_i.positive?
+ def self.version_rebuild(version, rebuild, bottle_tag = nil)
+ bottle_tag = (".#{bottle_tag}" if bottle_tag.present?)
+
+ rebuild... | false |
Other | Homebrew | brew | 8144fdef783623e3501eb475cf14414ec3dc3dad.json | Simplify CurlGitHubPackagesDownloadStrategy usage | Library/Homebrew/download_strategy.rb | @@ -533,20 +533,18 @@ def curl(*args, **options)
#
# @api public
class CurlGitHubPackagesDownloadStrategy < CurlDownloadStrategy
- attr_accessor :checksum, :name
+ attr_writer :resolved_basename
- private
-
- def _fetch(url:, resolved_url:)
- raise CurlDownloadStrategyError, "Empty checksum" if checksum.bla... | true |
Other | Homebrew | brew | 8144fdef783623e3501eb475cf14414ec3dc3dad.json | Simplify CurlGitHubPackagesDownloadStrategy usage | Library/Homebrew/software_spec.rb | @@ -304,9 +304,18 @@ def initialize(formula, spec)
checksum, tag, cellar = spec.checksum_for(Utils::Bottles.tag)
- filename = Filename.create(formula, tag, spec.rebuild)
- @resource.url("#{spec.root_url}/#{filename.bintray}",
- select_download_strategy(spec.root_url_specs))
+ filename... | true |
Other | Homebrew | brew | c8aea8653abcbb89a1334b173511b39e8588825a.json | utils/bottles: remove unused method. | Library/Homebrew/utils/bottles.rb | @@ -39,12 +39,6 @@ def extname_tag_rebuild(filename)
HOMEBREW_BOTTLES_EXTNAME_REGEX.match(filename).to_a
end
- # TODO: remove when removed from brew-test-bot
- sig { returns(Regexp) }
- def native_regex
- /(\.#{Regexp.escape(tag.to_s)}\.bottle\.(\d+\.)?tar\.gz)$/o
- end
-
... | false |
Other | Homebrew | brew | 1012f98c006b045e6461a344fdaa984f8433967a.json | cmd/vendor-install: use GitHub for portable Ruby.
Let's default to using GitHub for portable Ruby and fall back to Bintray
(because Bintray is going away). | Library/Homebrew/cmd/vendor-install.sh | @@ -17,16 +17,16 @@ if [[ -n "$HOMEBREW_MACOS" ]]
then
if [[ "$HOMEBREW_PROCESSOR" = "Intel" ]]
then
- ruby_URL="$HOMEBREW_BOTTLE_DOMAIN/bottles-portable-ruby/portable-ruby-2.6.3_2.yosemite.bottle.tar.gz"
- ruby_URL2="https://github.com/Homebrew/homebrew-portable-ruby/releases/download/2.6.3_2/portable-rub... | false |
Other | Homebrew | brew | e30f2af9870905181f12dbd45a973145dcadc1ee.json | system_command: improve EOF handling | Library/Homebrew/system_command.rb | @@ -197,23 +197,26 @@ def write_input_to(raw_stdin)
sig { params(sources: T::Array[IO], _block: T.proc.params(type: Symbol, line: String).void).void }
def each_line_from(sources, &_block)
- loop do
- readable_sources, = IO.select(sources)
-
- readable_sources = T.must(readable_sources).reject(&:eof... | false |
Other | Homebrew | brew | 89868087fd8540118475b5f3bddf159c687317ec.json | repair the message | Library/Homebrew/cmd/update-report.rb | @@ -154,8 +154,8 @@ def update_report
puts_stdout_or_stderr
puts_stdout_or_stderr <<~EOS
You have #{msg} installed.
- You can check #{update_pronoun} with #{Tty.bold}brew outdated#{Tty.reset}.
- You can update #{update_pronoun} with #{Tty.bold}brew upgr... | false |
Other | Homebrew | brew | c8299edb39eecb4bab7e55746ef69156ffea9a86.json | sorbet: Update RBI files.
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -12603,6 +12603,7 @@ class Object
DEPRECATED_OFFICIAL_TAPS = ::T.let(nil, ::T.untyped)
ENV = ::T.let(nil, ::T.untyped)
FORMULA_COMPONENT_PRECEDENCE_LIST = ::T.let(nil, ::T.untyped)
+ HOMEBREW_BOTTLES_EXTNAME_REGEX = ::T.let(nil, ::T.untyped)
HOMEBREW_BOTTLE_DEFAULT_DOMAIN = ::T.let(nil, ::T.untyped)
... | false |
Other | Homebrew | brew | f0ece0432d8c938d245dbca22fd2b08dc12cf7ff.json | Fix appcast spec. | Library/Homebrew/test/cask/audit_spec.rb | @@ -613,46 +613,46 @@ def tmp_cask(name, text)
end
end
- describe "hosting with appcast checks" do
- let(:message) { /please add an appcast/ }
+ describe "hosting with livecheck checks" do
+ let(:message) { /please add a livecheck/ }
- context "when the download does not use hosting... | false |
Other | Homebrew | brew | 9f9c5df047b2043158c081f0003b29856c71f19d.json | github_packages: Translate tab.arch to OCI
Translate Homebrew tab.arch to OCI platform.architecture. | Library/Homebrew/github_packages.rb | @@ -17,6 +17,12 @@ class GitHubPackages
DOCKER_PREFIX = "docker://#{URL_DOMAIN}/"
URL_REGEX = %r{(?:#{Regexp.escape(URL_PREFIX)}|#{Regexp.escape(DOCKER_PREFIX)})([\w-]+)/([\w-]+)}.freeze
+ # Translate Homebrew tab.arch to OCI platform.architecture
+ TAB_ARCH_TO_PLATFORM_ARCHITECTURE = {
+ "arm64" => "arm6... | false |
Other | Homebrew | brew | 495450592052a7e42377e1f78bca5ef92d20fa68.json | github_packages: Translate built_on to platform OS | Library/Homebrew/github_packages.rb | @@ -17,6 +17,12 @@ class GitHubPackages
DOCKER_PREFIX = "docker://#{URL_DOMAIN}/"
URL_REGEX = %r{(?:#{Regexp.escape(URL_PREFIX)}|#{Regexp.escape(DOCKER_PREFIX)})([\w-]+)/([\w-]+)}.freeze
+ # Translate Homebrew built_on.os to OCI platform.os
+ BUILT_ON_OS_TO_PLATFORM_OS = {
+ "Linux" => "linux",
+ "M... | false |
Other | Homebrew | brew | d8a2cf9efcecbc3e2ba48699a7c99cf2242dcae0.json | Write tabs to bottle JSON, optionally not bottle
- Write a subset of the tab required for bottles as an annotation.
- Add option on new bottle creation to skip writing tab into bottle
and instead add it (and other useful metadata) to bottle JSON.
- Read formula information and tab from bottle JSON.
- Write prettier ... | Library/Homebrew/.rubocop.yml | @@ -14,7 +14,7 @@ Lint/NestedMethodDefinition:
# TODO: Try to bring down all metrics maximums.
Metrics/AbcSize:
- Max: 250
+ Max: 275
Metrics/BlockLength:
Max: 100
Exclude: | true |
Other | Homebrew | brew | d8a2cf9efcecbc3e2ba48699a7c99cf2242dcae0.json | Write tabs to bottle JSON, optionally not bottle
- Write a subset of the tab required for bottles as an annotation.
- Add option on new bottle creation to skip writing tab into bottle
and instead add it (and other useful metadata) to bottle JSON.
- Read formula information and tab from bottle JSON.
- Write prettier ... | Library/Homebrew/cleanup.rb | @@ -64,7 +64,7 @@ def stale?(scrub: false)
def stale_formula?(scrub)
return false unless HOMEBREW_CELLAR.directory?
- version = if to_s.match?(Pathname::BOTTLE_EXTNAME_RX)
+ version = if HOMEBREW_BOTTLES_EXTNAME_REGEX.match?(to_s)
begin
Utils::Bottles.... | true |
Other | Homebrew | brew | d8a2cf9efcecbc3e2ba48699a7c99cf2242dcae0.json | Write tabs to bottle JSON, optionally not bottle
- Write a subset of the tab required for bottles as an annotation.
- Add option on new bottle creation to skip writing tab into bottle
and instead add it (and other useful metadata) to bottle JSON.
- Read formula information and tab from bottle JSON.
- Write prettier ... | Library/Homebrew/dev-cmd/bottle.rb | @@ -70,6 +70,9 @@ def bottle_args
depends_on: "--write",
description: "When passed with `--write`, a new commit will not generated after writing changes "\
"to the formula file."
+ switch "--only-json-tab",
+ depends_on: "--json",
+ d... | true |
Other | Homebrew | brew | d8a2cf9efcecbc3e2ba48699a7c99cf2242dcae0.json | Write tabs to bottle JSON, optionally not bottle
- Write a subset of the tab required for bottles as an annotation.
- Add option on new bottle creation to skip writing tab into bottle
and instead add it (and other useful metadata) to bottle JSON.
- Read formula information and tab from bottle JSON.
- Write prettier ... | Library/Homebrew/dev-cmd/pr-upload.rb | @@ -92,6 +92,12 @@ def pr_upload
hash.deep_merge(JSON.parse(IO.read(json_file)))
end
+ if args.root_url
+ bottles_hash.each_value do |bottle_hash|
+ bottle_hash["bottle"]["root_url"] = args.root_url
+ end
+ end
+
bottle_args = ["bottle", "--merge", "--write"]
bottle_args <... | true |
Other | Homebrew | brew | d8a2cf9efcecbc3e2ba48699a7c99cf2242dcae0.json | Write tabs to bottle JSON, optionally not bottle
- Write a subset of the tab required for bottles as an annotation.
- Add option on new bottle creation to skip writing tab into bottle
and instead add it (and other useful metadata) to bottle JSON.
- Read formula information and tab from bottle JSON.
- Write prettier ... | Library/Homebrew/download_strategy.rb | @@ -538,8 +538,8 @@ class CurlGitHubPackagesDownloadStrategy < CurlDownloadStrategy
private
def _fetch(url:, resolved_url:)
- raise "Empty checksum" if checksum.blank?
- raise "Empty name" if name.blank?
+ raise CurlDownloadStrategyError, "Empty checksum" if checksum.blank?
+ raise CurlDownloadStrat... | true |
Other | Homebrew | brew | d8a2cf9efcecbc3e2ba48699a7c99cf2242dcae0.json | Write tabs to bottle JSON, optionally not bottle
- Write a subset of the tab required for bottles as an annotation.
- Add option on new bottle creation to skip writing tab into bottle
and instead add it (and other useful metadata) to bottle JSON.
- Read formula information and tab from bottle JSON.
- Write prettier ... | Library/Homebrew/extend/pathname.rb | @@ -81,9 +81,6 @@ class Pathname
include DiskUsageExtension
- # @private
- BOTTLE_EXTNAME_RX = /(\.[a-z0-9_]+\.bottle\.(\d+\.)?tar\.gz)$/.freeze
-
# Moves a file from the original location to the {Pathname}'s.
sig {
params(sources: T.any(
@@ -243,7 +240,7 @@ def cp_path_sub(pattern, replacement)
... | true |
Other | Homebrew | brew | d8a2cf9efcecbc3e2ba48699a7c99cf2242dcae0.json | Write tabs to bottle JSON, optionally not bottle
- Write a subset of the tab required for bottles as an annotation.
- Add option on new bottle creation to skip writing tab into bottle
and instead add it (and other useful metadata) to bottle JSON.
- Read formula information and tab from bottle JSON.
- Write prettier ... | Library/Homebrew/formula_installer.rb | @@ -1139,14 +1139,21 @@ def pour
)
end
- tab.tap = formula.tap
+ # fill in missing/outdated parts of the tab
+ # keep in sync with Tab#to_bottle_json
+ tab.used_options = []
+ tab.unused_options = []
+ tab.built_as_bottle = true
tab.poured_from_bottle = true
- tab.time = Time.now... | true |
Other | Homebrew | brew | d8a2cf9efcecbc3e2ba48699a7c99cf2242dcae0.json | Write tabs to bottle JSON, optionally not bottle
- Write a subset of the tab required for bottles as an annotation.
- Add option on new bottle creation to skip writing tab into bottle
and instead add it (and other useful metadata) to bottle JSON.
- Read formula information and tab from bottle JSON.
- Write prettier ... | Library/Homebrew/formulary.rb | @@ -4,6 +4,7 @@
require "digest/md5"
require "extend/cachable"
require "tab"
+require "utils/bottles"
# The {Formulary} is responsible for creating instances of {Formula}.
# It is not meant to be used directly from formulae.
@@ -458,7 +459,7 @@ def self.path(ref)
def self.loader_for(ref, from: nil)
cas... | true |
Other | Homebrew | brew | d8a2cf9efcecbc3e2ba48699a7c99cf2242dcae0.json | Write tabs to bottle JSON, optionally not bottle
- Write a subset of the tab required for bottles as an annotation.
- Add option on new bottle creation to skip writing tab into bottle
and instead add it (and other useful metadata) to bottle JSON.
- Read formula information and tab from bottle JSON.
- Write prettier ... | Library/Homebrew/github_packages.rb | @@ -51,8 +51,8 @@ def upload_bottles(bottles_hash, dry_run:)
load_schemas!
- bottles_hash.each_value do |bottle_hash|
- upload_bottle(user, token, skopeo, bottle_hash, dry_run: dry_run)
+ bottles_hash.each do |formula_full_name, bottle_hash|
+ upload_bottle(user, token, skopeo, formula_full_nam... | true |
Other | Homebrew | brew | d8a2cf9efcecbc3e2ba48699a7c99cf2242dcae0.json | Write tabs to bottle JSON, optionally not bottle
- Write a subset of the tab required for bottles as an annotation.
- Add option on new bottle creation to skip writing tab into bottle
and instead add it (and other useful metadata) to bottle JSON.
- Read formula information and tab from bottle JSON.
- Write prettier ... | Library/Homebrew/global.rb | @@ -71,6 +71,7 @@
%r{https://api\.github\.com/repos/([\w-]+)/([\w-]+)?/pulls/(\d+)}.freeze
HOMEBREW_PULL_OR_COMMIT_URL_REGEX =
%r[https://github\.com/([\w-]+)/([\w-]+)?/(?:pull/(\d+)|commit/[0-9a-fA-F]{4,40})].freeze
+HOMEBREW_BOTTLES_EXTNAME_REGEX = /\.([a-z0-9_]+)\.bottle\.(?:(\d+)\.)?tar\.gz$/.freeze
requi... | true |
Other | Homebrew | brew | d8a2cf9efcecbc3e2ba48699a7c99cf2242dcae0.json | Write tabs to bottle JSON, optionally not bottle
- Write a subset of the tab required for bottles as an annotation.
- Add option on new bottle creation to skip writing tab into bottle
and instead add it (and other useful metadata) to bottle JSON.
- Read formula information and tab from bottle JSON.
- Write prettier ... | Library/Homebrew/tab.rb | @@ -33,17 +33,17 @@ def self.create(formula, compiler, stdlib)
"poured_from_bottle" => false,
"time" => Time.now.to_i,
"source_modified_time" => formula.source_modified_time.to_i,
- "HEAD" => HOMEBREW_REPOSITORY.git_head,
"compiler" ... | true |
Other | Homebrew | brew | d8a2cf9efcecbc3e2ba48699a7c99cf2242dcae0.json | Write tabs to bottle JSON, optionally not bottle
- Write a subset of the tab required for bottles as an annotation.
- Add option on new bottle creation to skip writing tab into bottle
and instead add it (and other useful metadata) to bottle JSON.
- Read formula information and tab from bottle JSON.
- Write prettier ... | Library/Homebrew/test/tab_spec.rb | @@ -42,6 +42,8 @@
"head" => "HEAD-1111111",
},
},
+ "arch" => Hardware::CPU.arch,
+ "built_on" => DevelopmentTools.build_system_info,
)
}
@@ -360,6 +362,7 @@
specify "#to_json" do
json_tab = described_class.new(JSON.parse(tab.to_json... | true |
Other | Homebrew | brew | d8a2cf9efcecbc3e2ba48699a7c99cf2242dcae0.json | Write tabs to bottle JSON, optionally not bottle
- Write a subset of the tab required for bottles as an annotation.
- Add option on new bottle creation to skip writing tab into bottle
and instead add it (and other useful metadata) to bottle JSON.
- Read formula information and tab from bottle JSON.
- Write prettier ... | Library/Homebrew/utils/bottles.rb | @@ -24,14 +24,22 @@ def built_as?(f)
def file_outdated?(f, file)
filename = file.basename.to_s
- return if f.bottle.blank? || !filename.match?(Pathname::BOTTLE_EXTNAME_RX)
+ return false if f.bottle.blank?
- bottle_ext = filename[native_regex, 1]
- bottle_url_ext = f.bott... | true |
Other | Homebrew | brew | d8a2cf9efcecbc3e2ba48699a7c99cf2242dcae0.json | Write tabs to bottle JSON, optionally not bottle
- Write a subset of the tab required for bottles as an annotation.
- Add option on new bottle creation to skip writing tab into bottle
and instead add it (and other useful metadata) to bottle JSON.
- Read formula information and tab from bottle JSON.
- Write prettier ... | completions/bash/brew | @@ -380,6 +380,7 @@ _brew_bottle() {
--merge
--no-commit
--no-rebuild
+ --only-json-tab
--quiet
--root-url
--skip-relocation | true |
Other | Homebrew | brew | d8a2cf9efcecbc3e2ba48699a7c99cf2242dcae0.json | Write tabs to bottle JSON, optionally not bottle
- Write a subset of the tab required for bottles as an annotation.
- Add option on new bottle creation to skip writing tab into bottle
and instead add it (and other useful metadata) to bottle JSON.
- Read formula information and tab from bottle JSON.
- Write prettier ... | completions/fish/brew.fish | @@ -365,6 +365,7 @@ __fish_brew_complete_arg 'bottle' -l keep-old -d 'If the formula specifies a reb
__fish_brew_complete_arg 'bottle' -l merge -d 'Generate an updated bottle block for a formula and optionally merge it into the formula file. Instead of a formula name, requires the path to a JSON file generated with `b... | true |
Other | Homebrew | brew | d8a2cf9efcecbc3e2ba48699a7c99cf2242dcae0.json | Write tabs to bottle JSON, optionally not bottle
- Write a subset of the tab required for bottles as an annotation.
- Add option on new bottle creation to skip writing tab into bottle
and instead add it (and other useful metadata) to bottle JSON.
- Read formula information and tab from bottle JSON.
- Write prettier ... | completions/zsh/_brew | @@ -453,6 +453,7 @@ _brew_bottle() {
'--merge[Generate an updated bottle block for a formula and optionally merge it into the formula file. Instead of a formula name, requires the path to a JSON file generated with `brew bottle --json` formula]' \
'--no-commit[When passed with `--write`, a new commit will not... | true |
Other | Homebrew | brew | d8a2cf9efcecbc3e2ba48699a7c99cf2242dcae0.json | Write tabs to bottle JSON, optionally not bottle
- Write a subset of the tab required for bottles as an annotation.
- Add option on new bottle creation to skip writing tab into bottle
and instead add it (and other useful metadata) to bottle JSON.
- Read formula information and tab from bottle JSON.
- Write prettier ... | docs/Manpage.md | @@ -823,6 +823,8 @@ value, while `--no-rebuild` will remove it.
Write changes to the formula file. A new commit will be generated unless `--no-commit` is passed.
* `--no-commit`:
When passed with `--write`, a new commit will not generated after writing changes to the formula file.
+* `--only-json-tab`:
+ When p... | true |
Other | Homebrew | brew | d8a2cf9efcecbc3e2ba48699a7c99cf2242dcae0.json | Write tabs to bottle JSON, optionally not bottle
- Write a subset of the tab required for bottles as an annotation.
- Add option on new bottle creation to skip writing tab into bottle
and instead add it (and other useful metadata) to bottle JSON.
- Read formula information and tab from bottle JSON.
- Write prettier ... | manpages/brew.1 | @@ -1133,6 +1133,10 @@ Write changes to the formula file\. A new commit will be generated unless \fB\-\
When passed with \fB\-\-write\fR, a new commit will not generated after writing changes to the formula file\.
.
.TP
+\fB\-\-only\-json\-tab\fR
+When passed with \fB\-\-json\fR, the tab will be written to the JSON ... | true |
Other | Homebrew | brew | 6be0b57a8237b113a27a5243bef9a5469f4cb031.json | formulary: fix constant redefined warning. | Library/Homebrew/formulary.rb | @@ -52,6 +52,7 @@ def self.load_formula(name, path, contents, namespace, flags:)
require "formula"
mod = Module.new
+ remove_const(namespace) if const_defined?(namespace)
const_set(namespace, mod)
begin | false |
Other | Homebrew | brew | a2099461dcd0b04eeada2b441966eb72d5174759.json | cask/dsl/version: remove another invalid character | Library/Homebrew/cask/dsl/version.rb | @@ -19,7 +19,7 @@ class Version < ::String
MAJOR_MINOR_PATCH_REGEX = /^([^.,:]+)(?:.([^.,:]+)(?:.([^.,:]+))?)?/.freeze
- INVALID_CHARACTERS = /[^0-9a-zA-Z.,:\-_+% ]/.freeze
+ INVALID_CHARACTERS = /[^0-9a-zA-Z.,:\-_+ ]/.freeze
class << self
private | false |
Other | Homebrew | brew | 7501d33159aadaabe2435373ceca2bb371aa8ef8.json | Pathname#install_metafiles: skip empty files.
Extracted from #10851 | Library/Homebrew/extend/pathname.rb | @@ -432,6 +432,7 @@ def write_jar_script(target_jar, script_name, java_opts = "", java_version: nil)
def install_metafiles(from = Pathname.pwd)
Pathname(from).children.each do |p|
next if p.directory?
+ next if File.zero?(p)
next unless Metafiles.copy?(p.basename.to_s)
# Some softwar... | true |
Other | Homebrew | brew | 7501d33159aadaabe2435373ceca2bb371aa8ef8.json | Pathname#install_metafiles: skip empty files.
Extracted from #10851 | Library/Homebrew/test/formula_installer_spec.rb | @@ -51,7 +51,8 @@ def temporary_install(formula, **options)
specify "basic installation" do
temporary_install(Testball.new) do |f|
# Test that things made it into the Keg
- expect(f.prefix/"readme").to exist
+ # "readme" is empty, so it should not be installed
+ expect(f.prefix/"readme").n... | true |
Other | Homebrew | brew | 9b725a58515f101caa9f1519bc9d5f48c28c18d7.json | cask/dsl/version: reject invalid characters.
There was a `invalid_characters` method already but it was not being
used. | Library/Homebrew/cask/audit.rb | @@ -233,7 +233,6 @@ def check_version
return unless cask.version
check_no_string_version_latest
- check_no_file_separator_in_version
end
def check_no_string_version_latest
@@ -243,14 +242,6 @@ def check_no_string_version_latest
add_error "you should use version :latest instead of... | true |
Other | Homebrew | brew | 9b725a58515f101caa9f1519bc9d5f48c28c18d7.json | cask/dsl/version: reject invalid characters.
There was a `invalid_characters` method already but it was not being
used. | Library/Homebrew/cask/dsl/version.rb | @@ -19,7 +19,7 @@ class Version < ::String
MAJOR_MINOR_PATCH_REGEX = /^([^.,:]+)(?:.([^.,:]+)(?:.([^.,:]+))?)?/.freeze
- INVALID_CHARACTERS = /[^0-9a-zA-Z.,:\-_]/.freeze
+ INVALID_CHARACTERS = /[^0-9a-zA-Z.,:\-_+% ]/.freeze
class << self
private
@@ -68,10 +68,13 @@ def conversion_... | true |
Other | Homebrew | brew | 9b725a58515f101caa9f1519bc9d5f48c28c18d7.json | cask/dsl/version: reject invalid characters.
There was a `invalid_characters` method already but it was not being
used. | Library/Homebrew/test/cask/audit_spec.rb | @@ -1011,24 +1011,5 @@ def tmp_cask(name, text)
expect(audit.cask.url.cookies).to eq "foo" => "bar"
end
end
-
- context "when the version contains a slash" do
- let(:cask_token) { "foo" }
- let(:cask) do
- tmp_cask cask_token.to_s, <<~RUBY
- cask '#{cask_token}' do
- ... | true |
Other | Homebrew | brew | 9b725a58515f101caa9f1519bc9d5f48c28c18d7.json | cask/dsl/version: reject invalid characters.
There was a `invalid_characters` method already but it was not being
used. | Library/Homebrew/test/cask/dsl/version_spec.rb | @@ -52,6 +52,14 @@
let(:version) { described_class.new(raw_version) }
+ describe "#initialize" do
+ it "raises an error when the version contains a slash" do
+ expect {
+ described_class.new("0.1,../../directory/traversal")
+ }.to raise_error(TypeError, %r{invalid characters: /})
+ end
+ ... | true |
Other | Homebrew | brew | c193cb984847f4e5583d44396016cc66075e34df.json | github_packages: Add annotations to image index
When `brew pr-upload` is run with `--dry-run`, write the OCI directory,
but do not upload it. | Library/Homebrew/dev-cmd/pr-upload.rb | @@ -118,7 +118,7 @@ def pr_upload
Upload bottles described by these JSON files to #{service}:
#{json_files.join("\n ")}
EOS
- return
+ return unless github_packages?(bottles_hash)
end
check_bottled_formulae(bottles_hash)
@@ -151,7 +151,7 @@ def pr_upload
elsif gith... | true |
Other | Homebrew | brew | c193cb984847f4e5583d44396016cc66075e34df.json | github_packages: Add annotations to image index
When `brew pr-upload` is run with `--dry-run`, write the OCI directory,
but do not upload it. | Library/Homebrew/github_packages.rb | @@ -14,7 +14,8 @@ class GitHubPackages
URL_DOMAIN = "ghcr.io"
URL_PREFIX = "https://#{URL_DOMAIN}/v2/"
- URL_REGEX = %r{#{Regexp.escape(URL_PREFIX)}([\w-]+)/([\w-]+)}.freeze
+ DOCKER_PREFIX = "docker://#{URL_DOMAIN}/"
+ URL_REGEX = %r{(?:#{Regexp.escape(URL_PREFIX)}|#{Regexp.escape(DOCKER_PREFIX)})([\w-]+)/(... | true |
Other | Homebrew | brew | a631377fd21f4dfc645b8d0c2d0311c7e4016301.json | pr-upload: Fix GitHub Packages for Linux
Fix GitHub Packages for Linux and third-party taps.
- Copy all architecture images using `skopeo copy --all` | Library/Homebrew/github_packages.rb | @@ -259,7 +259,7 @@ def upload_bottle(user, token, skopeo, bottle_hash)
image_tag = "#{org_prefix}/#{package_name}:#{version_rebuild}"
puts
system_command!(skopeo, verbose: true, print_stdout: true, args: [
- "copy", "--dest-creds=#{user}:#{token}",
+ "copy", "--all", "--dest-creds=#{user}:#{to... | false |
Other | Homebrew | brew | 725f2828b4ec27e43c4cc0086cc8b2894c91f7d2.json | github_packages: add mediaType comment. | Library/Homebrew/github_packages.rb | @@ -290,6 +290,7 @@ def write_image_config(platform_hash, tar_sha256, blobs)
def write_image_index(manifests, blobs, annotations)
image_index = {
+ # Currently needed for correct multi-arch display in GitHub Packages UI
mediaType: "application/vnd.docker.distribution.manifest.list.v2+json",
... | false |
Other | Homebrew | brew | 5f31ebd8d4e617aed9bc73f5a831981590ad2824.json | github_packages: use json_schemer gem.
Instead of the deprecated json-schema. | .gitignore | @@ -84,7 +84,6 @@
**/vendor/bundle/ruby/*/gems/thread_safe-*/lib/thread_safe/util
# Ignore dependencies we don't wish to vendor
-**/vendor/bundle/ruby/*/gems/addressable-*/
**/vendor/bundle/ruby/*/gems/ast-*/
**/vendor/bundle/ruby/*/gems/bootsnap-*/
**/vendor/bundle/ruby/*/gems/bundler-*/
@@ -97,11 +96,14 @@
**... | true |
Other | Homebrew | brew | 5f31ebd8d4e617aed9bc73f5a831981590ad2824.json | github_packages: use json_schemer gem.
Instead of the deprecated json-schema. | Library/Homebrew/github_packages.rb | @@ -46,10 +46,8 @@ def upload_bottles(bottles_hash)
end
# TODO: these dependencies are installed but cannot be required automatically.
- Homebrew.install_gem!("public_suffix")
- Homebrew.install_gem!("addressable")
- Homebrew.install_gem!("json-schema")
- require "json-schema"
+ Homebrew.inst... | true |
Other | Homebrew | brew | 5f31ebd8d4e617aed9bc73f5a831981590ad2824.json | github_packages: use json_schemer gem.
Instead of the deprecated json-schema. | Library/Homebrew/sorbet/rbi/todo.rbi | @@ -4,8 +4,7 @@
# typed: strong
module ::StackProf; end
module DependencyCollector::Compat; end
-module JSON::Schema; end
-module JSON::Validator; end
+module GitHubPackages::JSONSchemer; end
module OS::Mac::Version::NULL; end
module T::InterfaceWrapper::Helpers; end
module T::Private::Abstract::Hooks; end | true |
Other | Homebrew | brew | c3ea073a07cdf14b40102c72bf65419af83bb6ef.json | utils/gems: add dependencies to LOAD_PATH. | Library/Homebrew/utils/gems.rb | @@ -88,7 +88,10 @@ def install_gem!(name, version: nil, setup_gem_environment: true)
specs = Gem.install name, version, document: []
end
- # Add the new specs to the $LOAD_PATH.
+ specs += specs.flat_map(&:runtime_dependencies)
+ .flat_map(&:to_specs)
+
+ # Add the specs to the $... | false |
Other | Homebrew | brew | 22053ca2c3cb1b1a214087f1309def98757387bf.json | formula_installer: pass cache key to Dependency.expand | Library/Homebrew/formula_installer.rb | @@ -502,9 +502,8 @@ def check_conflicts
# being installed.
def compute_dependencies
@compute_dependencies ||= begin
- req_map, req_deps = expand_requirements
- check_requirements(req_map)
- expand_dependencies(req_deps + formula.deps)
+ check_requirements(expand_requirements)
+ expan... | false |
Other | Homebrew | brew | 65f52806f6e04f2013838d5c9ecc70eb1b91ab82.json | formula: make bazel write to .brew_home | Library/Homebrew/formula.rb | @@ -1981,6 +1981,9 @@ def setup_home(home)
import site; site.addsitedir("#{HOMEBREW_PREFIX}/lib/python2.7/site-packages")
import sys, os; sys.path = (os.environ["PYTHONPATH"].split(os.pathsep) if "PYTHONPATH" in os.environ else []) + ["#{HOMEBREW_PREFIX}/lib/python2.7/site-packages"] + sys.path
PYTHO... | false |
Other | Homebrew | brew | a6e7858cbc95b2526ac481248ac72e8bdc2dc786.json | mktemp: handle dirs with restricted permissions | Library/Homebrew/mktemp.rb | @@ -62,9 +62,23 @@ def run
begin
Dir.chdir(tmpdir) { yield self }
ensure
- ignore_interrupts { rm_rf(tmpdir) } unless retain?
+ ignore_interrupts { chmod_rm_rf(tmpdir) } unless retain?
end
ensure
ohai "Temporary files retained at:", @tmpdir.to_s if retain? && !@tmpdir.nil? && !@q... | false |
Other | Homebrew | brew | eea2055bfd0b812098ddc1a3404d6ed07d80fba1.json | Update RBI files for activesupport. | Library/Homebrew/sorbet/rbi/gems/activesupport@6.1.3.1.rbi | @@ -1,6 +1,6 @@
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `activesupport` gem.
-# Please instead update this file by running `tapioca sync`.
+# Please instead update this file by running `bin/tapioca sync`.
# typed: false
@@ -518,10 +518,10 @@ end
class String
inclu... | false |
Other | Homebrew | brew | a0261c4b394d661737e780607248174fb81996e2.json | cask uninstall script: allow tilde expansion to '$HOME' | Library/Homebrew/cask/artifact/abstract_artifact.rb | @@ -30,6 +30,7 @@ def self.dirmethod
def staged_path_join_executable(path)
path = Pathname(path)
+ path = path.expand_path if path.to_s.start_with?("~")
absolute_path = if path.absolute?
path | true |
Other | Homebrew | brew | a0261c4b394d661737e780607248174fb81996e2.json | cask uninstall script: allow tilde expansion to '$HOME' | Library/Homebrew/test/cask/cmd/uninstall_spec.rb | @@ -90,6 +90,30 @@
expect(cask).not_to be_installed
end
+ context "when Casks use script path with `~` as `HOME`" do
+ let(:home_dir) { mktmpdir }
+ let(:app) { Pathname.new("#{home_dir}/MyFancyApp.app") }
+ let(:cask) { Cask::CaskLoader.load(cask_path("with-uninstall-script-user-relative")) }
+
+ ... | true |
Other | Homebrew | brew | a0261c4b394d661737e780607248174fb81996e2.json | cask uninstall script: allow tilde expansion to '$HOME' | Library/Homebrew/test/support/fixtures/cask/Casks/with-uninstall-script-user-relative.rb | @@ -0,0 +1,21 @@
+cask "with-uninstall-script-user-relative" do
+ version "1.2.3"
+ sha256 "5633c3a0f2e572cbf021507dec78c50998b398c343232bdfc7e26221d0a5db4d"
+
+ url "file://#{TEST_FIXTURE_DIR}/cask/MyFancyApp.zip"
+ homepage "https://brew.sh/MyFancyApp"
+
+ app "MyFancyApp/MyFancyApp.app", target: "~/MyFancyApp.a... | true |
Other | Homebrew | brew | 92a42381df63456872e7bb0971a50bf91e209ad4.json | Add additional quiet check in update-report | Library/Homebrew/cmd/update-report.rb | @@ -91,10 +91,7 @@ def update_report
"git", "-C", HOMEBREW_REPOSITORY, "tag", "--list", "--sort=-version:refname", "*.*"
).lines.first.chomp
- if new_tag != old_tag
- Settings.write "latesttag", new_tag
- new_repository_version = new_tag
- end
+ new_repository_version = ne... | false |
Other | Homebrew | brew | d4bca4595acc31bb8c1f93d0b9ad54e4c8a44f07.json | dev-cmd/audit: delete one variable | Library/Homebrew/dev-cmd/audit.rb | @@ -106,7 +106,6 @@ def audit
new_formula = args.new_formula?
strict = new_formula || args.strict?
online = new_formula || args.online?
- git = args.git?
skip_style = args.skip_style? || args.no_named? || args.tap
no_named_args = false
@@ -173,7 +172,7 @@ def audit
new_formula: ... | false |
Other | Homebrew | brew | a3a6af9d99141160dad21ff8f04e9fdcacd274f4.json | cmd/list: remove cask and ls flag conflicts | Library/Homebrew/cmd/list.rb | @@ -57,6 +57,7 @@ def list_args
conflicts "--formula", "--cask"
conflicts "--full-name", "--versions"
conflicts "--pinned", "--multiple"
+ conflicts "--pinned", "--cask"
conflicts "--cask", "--multiple"
["--formula", "--cask", "--full-name", "--versions", "--pinned"].each do |fla... | false |
Other | Homebrew | brew | 0b39690e5c4c8b4b84c8e13c162ef77b8e9a4037.json | os/mac/xcode: update Clang version parsing for CLT 12.5 | Library/Homebrew/os/mac/xcode.rb | @@ -353,7 +353,7 @@ def detect_clang_version
end
def detect_version_from_clang_version
- detect_clang_version&.sub(/^(\d+)00\./, "\\1.")
+ detect_clang_version&.sub(/^(\d+)0(\d)\./, "\\1.\\2.")
end
# Version string (a pretty long one) of the CLT package. | false |
Other | Homebrew | brew | 402bf2ec561187d10f3d96bcdedbc0bffd14eea3.json | Update RBI files for parallel_tests. | Library/Homebrew/sorbet/rbi/gems/parallel_tests@3.6.0.rbi | @@ -1,6 +1,6 @@
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `parallel_tests` gem.
-# Please instead update this file by running `tapioca sync`.
+# Please instead update this file by running `bin/tapioca sync`.
# typed: true
| false |
Other | Homebrew | brew | eecbd5887c7e85010dd741cc7a957bd30a0c3aed.json | Apply suggestion from review
Co-authored-by: Markus Reiter <me@reitermark.us> | Library/Homebrew/cask/artifact/abstract_uninstall.rb | @@ -312,7 +312,7 @@ def uninstall_script(directives, directive_name: :script, force: false, command:
end
def uninstall_pkgutil(*pkgs, command: nil, **_)
- ohai "Uninstalling packages (your password may be necessary):"
+ ohai "Uninstalling packages; your password may be necessary:"
... | false |
Other | Homebrew | brew | 94737ef41ddc5352289ed3e3f88f3bd34198197d.json | cask: add password warning for pkg uninstall | Library/Homebrew/cask/artifact/abstract_uninstall.rb | @@ -312,7 +312,7 @@ def uninstall_script(directives, directive_name: :script, force: false, command:
end
def uninstall_pkgutil(*pkgs, command: nil, **_)
- ohai "Uninstalling packages:"
+ ohai "Uninstalling packages (your password may be necessary):"
pkgs.each do |regex|
... | false |
Other | Homebrew | brew | 7f272b78758930fa927f24e512eaa4cfaff28f68.json | Update RBI files for rubocop. | Library/Homebrew/sorbet/rbi/gems/rubocop@1.12.0.rbi | @@ -1,6 +1,6 @@
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `rubocop` gem.
-# Please instead update this file by running `tapioca sync`.
+# Please instead update this file by running `bin/tapioca sync`.
# typed: true
@@ -184,33 +184,20 @@ class RuboCop::CommentConfig
p... | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.