Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keg: mkpath while linking {include,lib,share}/postgresql@X #16966

Merged
merged 1 commit into from Mar 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 10 additions & 1 deletion Library/Homebrew/keg.rb
Expand Up @@ -415,7 +415,14 @@
link_dir("etc", verbose:, dry_run:, overwrite:) { :mkpath }
link_dir("bin", verbose:, dry_run:, overwrite:) { :skip_dir }
link_dir("sbin", verbose:, dry_run:, overwrite:) { :skip_dir }
link_dir("include", verbose:, dry_run:, overwrite:) { :link }
link_dir("include", verbose:, dry_run:, overwrite:) do |relative_path|
case relative_path.to_s

Check warning on line 419 in Library/Homebrew/keg.rb

View check run for this annotation

Codecov / codecov/patch

Library/Homebrew/keg.rb#L419

Added line #L419 was not covered by tests
when %r{^postgresql@\d+/}
:mkpath
else
:link
end
end

link_dir("share", verbose:, dry_run:, overwrite:) do |relative_path|
case relative_path.to_s
Expand All @@ -429,6 +436,7 @@
/^fish/,
%r{^lua/}, # Lua, Lua51, Lua53 all need the same handling.
%r{^guile/},
%r{^postgresql@\d+/},
*SHARE_PATHS
:mkpath
else
Expand All @@ -452,6 +460,7 @@
/^ocaml/,
/^perl5/,
"php",
%r{^postgresql@\d+/},
/^python[23]\.\d+/,
/^R/,
/^ruby/
Expand Down