Skip to content

Commit

Permalink
rye: conflicts with ryelang
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanb committed Jan 27, 2025
1 parent 775f754 commit c42a8b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Formula/r/rye.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ class Rye < Formula
depends_on "openssl@3"
end

conflicts_with "ryelang", because: "both install `rye` binaries"

def install
system "cargo", "install", *std_cargo_args(path: "rye")
generate_completions_from_executable(bin/"rye", "self", "completion", "-s")
Expand Down
1 change: 1 addition & 0 deletions Formula/r/ryelang.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class Ryelang < Formula
def install
ENV["CGO_ENABLED"] = OS.mac? ? "1" : "0"
system "go", "build", *std_go_args(ldflags: "-s -w", output: bin/"rye")
bin.install_symlink "rye" => "ryelang" # for backward compatibility
end

test do
Expand Down

0 comments on commit c42a8b6

Please sign in to comment.