Pass warn in FromNameLoader.

This commit is contained in:
Markus Reiter 2024-02-22 21:51:51 +01:00
parent d3ef383753
commit 0684a16293
No known key found for this signature in database
GPG Key ID: 245293B51702655B
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