-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
geometry 2.0.0 (new formula) #122739
geometry 2.0.0 (new formula) #122739
Conversation
Formula/geometry.rb
Outdated
uses_from_macos "zsh" => :test | ||
|
||
def install | ||
libexec.install ["functions", "geometry.zsh"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
libexec.install ["functions", "geometry.zsh"] | |
pkgshare.install ["functions", "geometry.zsh"] |
This seems more typical of other Zsh plugins.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@carlocab Ideally, all prompt
themes should be zsh_function.install
ed so they can be autoload
ed for promptinit
, but this one doesn't work like that… @geometry-zsh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I don't find pkgshare
a great place either (some zsh_*
location is probably better), but that's where a bunch of other formula install *.zsh
plugins, so we should at least try to be consistent.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should at least try to be consistent
Agreed, but looking at other prompt
formulae, it is currently very inconsistent… Some of them use #{HOMEBREW_PREFIX}/share/
(would opt
not be more appropriate here, anyway?), others #{opt_prefix}/
, others [opt_
]pkgshare/
, and others still zsh_function
.
Some have caveats
, but others do not… It all seems a bit arbitrary.
For zsh
prompt
s specifically, autoload
ing them from #{prefix}/share/zsh/site-functions
(the zsh_function.install
location, already found onFPATH
) is the proper way to install a prompt
theme, and should speed up zsh
ell initial load time, as opposed to just source
ing directly in .zshrc
…
6febb15
to
84ca7f8
Compare
looks like |
84ca7f8
to
056d974
Compare
@chenrui333 So strange, since that’s the version I am actually still using on my local machine, where the The same test was passing before changing |
@chenrui333 Passing now…?! 🤷🏻♂️ |
Odd... We just have a bunch of text files. I wonder if we've broken bottle reproducibility somewhere.
CC @Homebrew/brew Here's some output from |
Yep, looks broken by Homebrew/brew#14479. Looks like the same thing might have happened to the other cmd changes too. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rebased to pull in the bottle fix. Can merge once CI is complete.
I'm not sure this should have been added to |
This is just a shell plugin, so the need for maintenance is quite low. I've seen widely used shell completion scripts that haven't changed for much, much longer than that. |
Are we ok with changing to |
We can probably bump this to 2.2.0 actually. It looks like only major releases get registered as GitHub releases, but later tags seem fine for general use. |
@carlocab Would you mind approving my linked PR so we can get it merged? |
brew install --build-from-source <formula>
, where<formula>
is the name of the formula you're submitting?brew test <formula>
, where<formula>
is the name of the formula you're submitting?brew audit --strict <formula>
(after doingbrew install --build-from-source <formula>
)? If this is a new formula, does it passbrew audit --new <formula>
?