Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions Formula/try.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
class Try < Formula
desc "Fresh directories for every vibe - lightweight experiments for people with ADHD"
homepage "https://github.com/tobi/try"
url "https://github.com/tobi/try/archive/refs/heads/main.tar.gz"
sha256 "dd3753f38b5c35597c8c2528a19efd7e4289bbbe977d18e2e299a2a57b393a8e"
version "main"
Copy link

@saiqulhaq saiqulhaq Nov 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried your GitHub branch and installed the formula locally
I got this error:

Error: invalid attribute for formula 'xxx/try/try': version (nil)

Final code that works:

class Try < Formula
  desc "Fresh directories for every vibe - lightweight experiments for people with ADHD"
  homepage "https://github.com/hirotaka/try"
  head "https://github.com/hirotaka/try.git", branch: "fix-homebrew-formula"
  url "https://github.com/tobi/try/archive/refs/heads/main.tar.gz"
  version "main"

  depends_on "ruby"

  def install
    bin.install "try.rb" => "try"
  end

  def caveats
    <<~EOS
      To set up try with your shell, add one of the following to your shell configuration:

      For bash/zsh:
        eval "$(try init ~/src/tries)"

      For fish:
        eval "(try init ~/src/tries | string collect)"

      You can change ~/src/tries to any directory where you want your experiments stored.
    EOS
  end

  test do
    system "#{bin}/try", "--help"
  end
end

head "https://github.com/tobi/try.git", branch: "main"

depends_on "ruby"

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ nix run github:tobi/try init ~/my-tries
### Quick start

```bash
brew tap tobi/try
brew tap tobi/try https://github.com/tobi/try
brew install try
```

Expand Down