-
-
Notifications
You must be signed in to change notification settings - Fork 12.4k
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
rustfmt 1.6.0 #137033
rustfmt 1.6.0 #137033
Conversation
6043e57
to
28add7d
Compare
80bc9f4
to
48543be
Compare
48543be
to
e9170b7
Compare
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.
I think rustfmt
can be built alongside rust
, so I'm wondering if it makes more sense to just bundle this with the rust
formula.
Formula/rustfmt.rb
Outdated
on_linux do | ||
depends_on "patchelf" => :build | ||
end |
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.
patchelf.rb
should be available via brew
, so we should try to use that instead of depending on patchelf
. CC @Homebrew/linux for suggestions here.
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.
Do you mean the patchelf.rb
formula or the API?
Formula/rustfmt.rb
Outdated
system "patchelf", *patch_libs, "#{bin}/rustfmt" | ||
system "patchelf", *patch_libs, "#{bin}/git-rustfmt" |
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.
Could we try using patchelf.rb
here?
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.
I switched to that API and seems like it does not work. Is there any example I can refer to?
70414a7
to
fe4369d
Compare
3843083
to
0bf24e3
Compare
0bf24e3
to
db3467f
Compare
It seems that this is already the case in #136514: https://github.com/Homebrew/homebrew-core/actions/runs/5594719599/jobs/10233272477?pr=136514#step:4:202 |
That's cool. If so would we consider closing this PR for now? |
rust-analyzer is in the same boat, and probably need the similar handling as in here |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Let's close it for now. |
@henryhchchc, thanks for your work. We've shipped Rust 1.72.0 in #140367, which unbundled |
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>
?The following changes are made: