Merge pull request #19283 from gromgit/clear_cache_on_create
clear core tap cache on formula creation
This commit is contained in:
commit
c949f9f719
@ -220,6 +220,7 @@ module Homebrew
|
|||||||
path = fc.write_formula!
|
path = fc.write_formula!
|
||||||
|
|
||||||
formula = Homebrew.with_no_api_env do
|
formula = Homebrew.with_no_api_env do
|
||||||
|
CoreTap.instance.clear_cache
|
||||||
Formula[fc.name]
|
Formula[fc.name]
|
||||||
end
|
end
|
||||||
PyPI.update_python_resources! formula, ignore_non_pypi_packages: true if args.python?
|
PyPI.update_python_resources! formula, ignore_non_pypi_packages: true if args.python?
|
||||||
|
@ -100,9 +100,9 @@ module Homebrew
|
|||||||
sig { params(name: String).returns(String) }
|
sig { params(name: String).returns(String) }
|
||||||
def latest_versioned_formula(name)
|
def latest_versioned_formula(name)
|
||||||
name_prefix = "#{name}@"
|
name_prefix = "#{name}@"
|
||||||
Tap.fetch("homebrew/core").formula_names
|
CoreTap.instance.formula_names
|
||||||
.select { |f| f.start_with?(name_prefix) }
|
.select { |f| f.start_with?(name_prefix) }
|
||||||
.max_by { |v| Gem::Version.new(v.sub(name_prefix, "")) } || "python"
|
.max_by { |v| Gem::Version.new(v.sub(name_prefix, "")) } || "python"
|
||||||
end
|
end
|
||||||
|
|
||||||
sig { returns(String) }
|
sig { returns(String) }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user