Skip to content

Commit 34965ea

Browse files
committed
refactor(brew): apply homebrew best practices, mark head-only
1 parent 9f1dc33 commit 34965ea

2 files changed

Lines changed: 27 additions & 13 deletions

File tree

Formula/graft.rb

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,41 @@
11
class Graft < Formula
22
desc "Persistent graph memory for AI agents"
33
homepage "https://github.com/AEndrix03/Graft"
4-
url "https://github.com/AEndrix03/Graft.git", branch: "master"
5-
version "0.1.0"
64
license "Apache-2.0"
75
head "https://github.com/AEndrix03/Graft.git", branch: "master"
86

7+
livecheck do
8+
skip "no tagged stable release yet; install with --HEAD"
9+
end
10+
911
depends_on "cmake" => :build
1012
depends_on "git" => :build
1113
depends_on "pkgconf" => :build
1214
depends_on "libyaml"
1315
depends_on "sqlite"
1416

1517
resource "blake3" do
16-
url "https://github.com/BLAKE3-team/BLAKE3.git", revision: "f3913d953128661319b6b57b1c001a3b9c2d526e"
18+
url "https://github.com/BLAKE3-team/BLAKE3.git",
19+
branch: "master",
20+
revision: "f3913d953128661319b6b57b1c001a3b9c2d526e"
1721
end
1822

1923
resource "llama.cpp" do
20-
url "https://github.com/ggerganov/llama.cpp.git", revision: "bbeb89d76c41bc250f16e4a6fefcc9b530d6e3f3"
24+
url "https://github.com/ggerganov/llama.cpp.git",
25+
tag: "b9037",
26+
revision: "bbeb89d76c41bc250f16e4a6fefcc9b530d6e3f3"
2127
end
2228

2329
resource "mpack" do
24-
url "https://github.com/ludocode/mpack.git", revision: "a2d720270329be5d2179cd71aad6c8014d1cc555"
30+
url "https://github.com/ludocode/mpack.git",
31+
branch: "develop",
32+
revision: "a2d720270329be5d2179cd71aad6c8014d1cc555"
2533
end
2634

2735
resource "sqlite-vec" do
28-
url "https://github.com/asg017/sqlite-vec.git", revision: "5778fecfebaddafc23b69a3a4b91a8ee80e37a92"
36+
url "https://github.com/asg017/sqlite-vec.git",
37+
branch: "main",
38+
revision: "5778fecfebaddafc23b69a3a4b91a8ee80e37a92"
2939
end
3040

3141
resource "bge-m3" do
@@ -105,6 +115,9 @@ def install
105115

106116
def caveats
107117
<<~EOS
118+
Graft has no tagged stable release yet; install it with:
119+
brew install --HEAD graft
120+
108121
The default Homebrew config is:
109122
#{prefix}/config.example.yaml
110123

docs/Homebrew.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,29 @@
11
# Homebrew install
22

33
Graft ships a Homebrew formula in `Formula/graft.rb`. It is meant for a
4-
project-owned tap first, not for `homebrew/core` submission yet. The tap formula
5-
currently tracks `master`; switch the formula URL to a tagged tarball before a
6-
public stable release.
4+
project-owned tap first, not for `homebrew/core` submission yet. There is no
5+
tagged stable release yet, so the formula is **HEAD-only** today — install with
6+
`--HEAD`. Add a `stable` block (tarball URL + sha256 + `version`) and drop the
7+
`livecheck do skip ... end` once the first tag is published.
78

89
## Install from the repository tap
910

1011
```sh
1112
brew tap AEndrix03/graft https://github.com/AEndrix03/Graft.git
12-
brew install graft
13+
brew install --HEAD graft
1314
graft stats
1415
```
1516

1617
The formula builds the CLI and daemon from source, installs the pinned BGE-M3
1718
GGUF model as a checksummed Homebrew resource, and keeps runtime profiles under
1819
`~/.graft`.
1920

20-
## Development install
21+
## Updating between commits
2122

22-
Use `--HEAD` when testing unreleased changes from `master`:
23+
`brew` caches sources. After a push to `master`, pull the new HEAD with:
2324

2425
```sh
25-
brew reinstall --HEAD graft
26+
brew upgrade --fetch-HEAD graft # or: brew reinstall --HEAD graft
2627
brew test graft
2728
```
2829

0 commit comments

Comments
 (0)