Commit Graph
13 Commits
Author SHA1 Message Date
zeekay 7844a60aff refactor(pack): modernize to github.com/hanzoai/pack and remove upstream branding
- Migrate module path to github.com/hanzoai/pack across all Go packages
- Remove legacy upstream docs and competitor brand references
- Modernize LLM.md and mise.toml for pristine Hanzo Pack builder
2026-09-04 00:40:42 -07:00
Ed GaniukovandGitHub 01ecfada39 fix: exit 75 for transient failures (#690)
Every failure exited 1, so callers could only retry blindly:
deterministic failures (no provider detected, missing start command)
were run and logged three times by builderv3 before giving up.

Transient failures are now typed as mise.TemporaryError and map to exit
75 (EX_TEMPFAIL): transport errors, 429, 408, 5xx, and truncated
bodies. A 404 for a pinned mise version and a malformed archive stay
deterministic, since retrying them cannot succeed. The mise download
also had no response status check at all, so a 5xx body was written to
disk and later failed as "binary not found in archive".

Carrying that across the process boundary meant giving
GenerateBuildPlan an error return: a mise install failure was
previously swallowed into BuildResult{Success: false} and exited 1
along with every app-level failure. The error is non-nil only for
transient failures, so !Success stays on exit 1.

The download gets an http.Client timeout, since http.DefaultClient has
none and a stalled connection would hang the build forever. It
deliberately does not retry in-process: the caller already retries the
whole command, and retrying here would multiply that and delay the
signal.

Also writes --info-out even when the build result is unsuccessful, so
callers can read {"success": false, "logs": [...]} instead of scraping
stdout.
2026-08-12 14:46:23 +02:00
Michael BiancoandGitHub aae5ff8386 feat(cli): add show-plan flag to info command (#684)
* refactor: add io.Writer parameter to pretty print functions and JSON support

Generated-by: aiautocommit

* chore: promote tidwall/pretty from indirect to direct dependency

Generated-by: aiautocommit

* feat(cli): add show-plan flag to info command

- Add `--show-plan` flag to optionally render the generated build plan in the info command output.
- Update section header printing functions to accept an `io.Writer` destination for consistent output formatting.

Generated-by: aiautocommit
2026-08-10 16:14:52 -06:00
Michael BiancoandGitHub 13ad6257d4 build: upgrade go version (#515)
* build: update go version

* build: lockfile upgrades

* refactor: use switch statements for conditionals

* style: fix blank identifier assignments as receivers

* fix: ignore deferred io and removal errors

* refactor: general code improvements and staticcheck fixes

* test: bump golangci-lint-action version

* build: add go package upgrade task

* build: go package bump

* build: add go mod check to mise check task

* build: upgrade go packages automatically when upgrading mise

* build: update go version in local frontend image
2026-03-16 20:26:16 -06:00
Jake Runzer 0f3b85fb13 start command and missing build plan errors 2025-02-27 21:47:21 -05:00
Jake Runzer 6cd7299071 properly use the version set by goreleaser 2025-02-10 16:14:42 -07:00
Jake Runzer 416b1acfea update names 2025-02-03 22:28:15 -08:00
Jake Runzer 4cf0eb8278 extract common build flags and write fill out the CLI reference 2025-02-03 21:42:36 -08:00
Jake Runzer 1f1d137d2c support passing in previous versions 2025-01-29 20:49:09 -05:00
Jake Runzer d50b8c7342 support buildkit secrets when using build command 2025-01-28 17:35:40 -05:00
Jake Runzer cd8f3895e7 rename repo to "railpack" 2025-01-27 23:16:26 -05:00
Jake Runzer 65d6fe7e87 flag config 2025-01-27 20:21:52 -05:00
Jake Runzer b7395eb6ae railpack info command that shows metadata 2025-01-27 14:38:40 -05:00