Merge pull request #16729 from reitermarkus/warn-from-name-loader

Pass `warn` in `FromNameLoader`.
This commit is contained in:
Markus Reiter 2024-02-23 01:27:55 +01:00 committed by GitHub
commit 96f861e947
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -779,7 +779,7 @@ module Formulary
name = ref
loaders = Tap.map { |tap| super("#{tap}/#{name}") }
loaders = Tap.map { |tap| super("#{tap}/#{name}", warn: warn) }
.compact
.select { _1.path.exist? }

View File

@ -550,6 +550,7 @@ RSpec.describe Formulary do
before do
old_tap.path.mkpath
(old_tap.path/"tap_migrations.json").write tap_migrations.to_json
FileUtils.touch default_tap.formula_dir/"foo.rb"
end
it "does not warn when loading the short token" do