-
-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
srgn 0.11.0 (new formula) #165653
Merged
Merged
srgn 0.11.0 (new formula) #165653
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1572,6 +1572,7 @@ squealer | |
squid | ||
sratoolkit | ||
src | ||
srgn | ||
srt | ||
srtp | ||
sshs | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
class Srgn < Formula | ||
desc "Code surgeon for precise text and code transplantation" | ||
homepage "https://github.com/alexpovel/srgn" | ||
url "https://github.com/alexpovel/srgn/archive/refs/tags/srgn-v0.11.0.tar.gz" | ||
sha256 "82b0fe9282293ce2a132769e0ad4640d531c08d43b23798e2a51ec917a89853c" | ||
license "MIT" | ||
head "https://github.com/alexpovel/srgn.git", branch: "main" | ||
|
||
bottle do | ||
sha256 cellar: :any_skip_relocation, arm64_sonoma: "9502974bda8a829cd0f02a488e920aebf220b2b730ae3b3f9139bec6336e9c7d" | ||
sha256 cellar: :any_skip_relocation, arm64_ventura: "6c39e18f77523336c1bb8fc05aeb14c2c730731278474ad1146d826758b7cec5" | ||
sha256 cellar: :any_skip_relocation, arm64_monterey: "7fd6c628f68d4b9c134e65570c15bf10f7713ee6da12ae88ef2dfa213676f4ec" | ||
sha256 cellar: :any_skip_relocation, sonoma: "4d13fb260523de7976895358288c7ba0874d682d1bd087cecc1c14bc290cea91" | ||
sha256 cellar: :any_skip_relocation, ventura: "2fa8f93f0dab332c957d4cde998c5e09ad207b665c72cc53d0cab48cd3dc3f22" | ||
sha256 cellar: :any_skip_relocation, monterey: "b4a36b438b7f3e3ff86ab6689bc8aca99562d5032ca208d324f2c0bccf8be215" | ||
sha256 cellar: :any_skip_relocation, x86_64_linux: "c815fb0a60589747ffd43c0c3242eb5e74079ade72f0dddae0cd99aa44e24159" | ||
end | ||
|
||
depends_on "rust" => :build | ||
|
||
def install | ||
system "cargo", "install", *std_cargo_args | ||
end | ||
|
||
test do | ||
assert_match "H____", pipe_output("#{bin}/srgn '[a-z]' '_'", "Hello") | ||
|
||
test_string = "Hide ghp_th15 and ghp_th4t" | ||
assert_match "Hide ******** and ********", pipe_output("#{bin}/srgn '(ghp_[[:alnum:]]+)' '*'", test_string) | ||
|
||
assert_match version.to_s, shell_output("#{bin}/srgn --version") | ||
end | ||
end |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@Homebrew/core do we want to automatically add all software to this list? Maybe we should make a blocklist instead then.
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.
Wouldn't it be better to store this information in the formula itself?
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.
you mean autobump info?
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 dont think we have a way of doing it now atm
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.
No we don't, but it would seem to be 1. a more relevant place to put it, 2. more scalable (no merge conflicts, no tedious long list of formulas). Should we propose it?
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.
Sounds like something we should consider.
Maybe also have an option to specify if bumped by upstream as we removed those formulae in #164770 but we don't have a way to keep track of them. This can lead to us accidentally re-adding them and potentially messing up the upstream release flow. Otherwise, we would probably need another list to record this info to avoid having maintainers manually keep track of it.
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 only really make this a formula DSL if we're going to make it possible for third-party taps to use autobump somehow too.
We shouldn't add software automatically here but it does seem reasonable to add it manually.