Conversation
|
|
||
| test do | ||
| assert_match version.to_s, shell_output("#{bin}/hister --version") | ||
| assert_match "search engine", shell_output("#{bin}/hister --help") |
There was a problem hiding this comment.
can we do another substantial test other than --help check?
|
Good point. Replaced the
Verified locally: |
|
Thanks for contributing to Homebrew! 🎉 It looks like you're having trouble with a CI failure. See our contribution guide for help. You may be most interested in the section on dealing with CI failures. You can find the CI logs in the Checks tab of your pull request. |
|
Fixed in 48d1d5b. Root cause was Also squashed into a single Verified locally on darwin/arm64:
|
| system "go", "generate", "./..." | ||
| system "go", "build", *std_go_args(ldflags: "-s -w") | ||
| end | ||
|
|
There was a problem hiding this comment.
This "tool" seams to be something that user run in the background, correct? So adding a service block https://docs.brew.sh/Formula-Cookbook#service-files might be usefull.
New formula for hister (v0.12.0). Upstream issue requesting Homebrew distribution: asciimoo/hister#161.
Repo stats: 767 stars, 42 forks, 13 tagged releases (v0.1.0–v0.12.0). License: AGPL-3.0-or-later.
The build runs
go generate ./...(which invokeswebui/build.shto produce the Svelte web UI bundle embedded via//go:embed) and thengo build. Node is a build-only dep; the runtime is a single static Go binary.HOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>?brew test <formula>?brew audit --strict <formula>(after doingHOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>)? If this is a new formula, does it passbrew audit --new <formula>?brew audit --new --strict --online histerpasses clean,brew install --build-from-source histersucceeds (~1 min),brew test histerpasses, andhister --versionreportsv0.12.0. I reviewed the formula against sibling Go+Node formulas (autobrr, anubis) for convention match and read the relevant upstream source (generate.go,webui/build.sh,server/static/static.go) before deciding on the build shape.