Skip to content

feat: add lc formula - #1

Merged
bougyman merged 1 commit into
mainfrom
bougyman/cry-37-create-rubyistshomebrew-tap-for-lc
Aug 11, 2026
Merged

feat: add lc formula#1
bougyman merged 1 commit into
mainfrom
bougyman/cry-37-create-rubyistshomebrew-tap-for-lc

Conversation

@bougyman

Copy link
Copy Markdown
Member

Summary

  • Adds a Homebrew formula for lc (the Elixir port of linear-cli, https://github.com/rubyists/linear-cli-ex), installing a precompiled binary for macOS (Apple Silicon) and Linux (x86_64) - no Elixir/Erlang/Zig build dependency needed on the installing machine.
  • Points at the real v1.0.0 release assets/sha256 (matching that release's own SHA256SUMS) - verified by downloading both tarballs, confirming the flat layout (lc + the 5 wrapper scripts at tarball root), and running the extracted linux_x86_64 binary's --version output directly.

Closes CRY-37.

Test plan

  • ruby -c Formula/lc.rb - syntax OK
  • sha256 values verified against the v1.0.0 release's own SHA256SUMS asset
  • Tarball layout verified against bin.install's arg list (flat, no subdirectory)
  • Extracted binary runs and reports the expected version
  • brew install --build-from-source rubyists/tap/lc on an actual macOS/Linux machine (no brew available in this environment)

🤖 Generated with Claude Code

The formula was pointing at v0.8.1 assets/sha256 - stale placeholders
from before a real release existed. Points both URLs at the actual
v1.0.0 release and updates sha256 to match the release's own
SHA256SUMS file. Verified: downloaded both tarballs, confirmed a flat
layout (lc + the 5 wrapper scripts at tarball root, matching
bin.install's arg list), and ran the extracted linux_x86_64 binary's
`--version` output directly.
Copilot AI lite review requested due to automatic review settings August 11, 2026 21:23

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Updates the Homebrew tap formula for lc to install the v1.0.0 precompiled release assets, aligning the formula’s URLs and SHA256 checksums with the latest upstream release.

Changes:

  • Bump macOS (arm64) download URL and SHA256 to v1.0.0.
  • Bump Linux (x86_64) download URL and SHA256 to v1.0.0.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread Formula/lc.rb
@bougyman
bougyman merged commit ad5dd37 into main Aug 11, 2026
1 check passed
@bougyman
bougyman deleted the bougyman/cry-37-create-rubyistshomebrew-tap-for-lc branch August 11, 2026 21:28
@bougyman
bougyman restored the bougyman/cry-37-create-rubyistshomebrew-tap-for-lc branch August 12, 2026 12:14
bougyman added a commit to rubyists/linear-cli that referenced this pull request Aug 12, 2026
#75)

## Summary
- Vendors the new `rubyists/homebrew-tap` repo as a submodule at
`vendor/rubyists-homebrew-tap`, pinned to the commit whose `lc` formula
points at the real `v1.0.0` release assets/sha256
(rubyists/homebrew-tap#1). Closes CRY-37.
- Rewrites `install.sh` to be actually curl-pipeable: it previously
required a local repo checkout (`BASH_SOURCE[0]`-derived `app/` path)
and a full Elixir/Erlang/Zig toolchain to build from source, despite its
own comment claiming to be the Homebrew-less fallback. Now downloads the
release tarball for the detected platform (already bundles the wrapper
scripts), verifies it against the release's own `SHA256SUMS`, and
installs - no toolchain needed. Adds `LC_VERSION` to pin a specific
release tag. Also strips macOS's quarantine attribute on `lc`
(previously a manual README step).
- Fixes a real bug found while testing: a checksum-verification failure
didn't actually stop the script (a missing `|| exit 1` on the one
command-substitution call that lacked it), so it fell through into an
unrelated second error instead of failing clean.
- Updates the README: fixes the stale "Homebrew tap is planned but not
yet available" note now that the tap exists, adds a Homebrew install
subsection, and documents `install.sh`/`uninstall.sh`'s new
curl-pipeable one-liners.

## Test plan
- [x] Ran `install.sh` directly and piped (`cat install.sh | bash`,
matching real `curl | bash` usage) - both install correctly, `lc
--version` reports `1.0.0`
- [x] Tested `LC_VERSION=v1.0.0` (pinned) alongside default (`latest`)
- [x] Tested a corrupted/tampered download - checksum verification
correctly aborts before installing anything
- [x] Round-tripped with `uninstall.sh` - removes exactly the manifest's
files
- [x] Verified the Homebrew formula's sha256 values against the
release's own `SHA256SUMS`, and the tarball's flat layout against
`bin.install`'s arg list

🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants