Skip to content

fix: correct login error, validate CLI flags, and migrate CI to go-cli blueprint - #1

Open
o5carm wants to merge 2 commits into
juli3nk:mainfrom
o5carm:fix/bugs
Open

fix: correct login error, validate CLI flags, and migrate CI to go-cli blueprint#1
o5carm wants to merge 2 commits into
juli3nk:mainfrom
o5carm:fix/bugs

Conversation

@o5carm

@o5carm o5carm commented Aug 4, 2026

Copy link
Copy Markdown

Fixes

  • auth.go: Corrected json.Marshal(resp.Body) to io.ReadAll — the previous implementation serialized the *http.Response type instead of reading its contents, producing empty or misleading error messages on login failure.
  • auth.go: Added a 30-second HTTP timeout to the login client to prevent indefinite hangs.
  • alias list: Marked --active, --disabled, and --page as mutually exclusive flags, as per API documentation.
  • go.mod: Updated Go version from 1.24.5 to 1.26.5.

CI Refactor

  • Replaced local Dagger module (.dagger/, 13 Go files) with the go-cli blueprint from github.com/o5carm/dagger-blueprints/go-cli@df6f692
  • Simplified ci.yaml: single verify job (repository + Go quality checks) → build job (multi-platform binaries)
  • Simplified release.yaml: single release job (semantic-release + GitHub assets upload)
  • Removed redundant individual lint/format/publish jobs — all handled by the blueprint toolchain

Blueprint Usage

The go-cli blueprint exposes:

  • verify — repository validation + Go lint/test
  • build(name, packages, platforms) — multi-platform binaries
  • release(name, packages, repositoryUrl, dryRun) — semantic-release + asset upload

o5carm added 2 commits August 4, 2026 05:36
…ive flags

- Fix json.Marshal(resp.Body) to io.ReadAll(resp.Body) in Login()
- Add 30s timeout to login HTTP client
- Mark pinned/disabled/enabled flags as mutually exclusive in alias list
- Update Go version to 1.26.5
…dagger-blueprints

- Remove local .dagger/ Go module (legacy)
- Set blueprint to github.com/o5carm/dagger-blueprints/go-cli@df6f692
- Update ci.yaml: single verify + build jobs using blueprint
- Update release.yaml: single release job using blueprint
- Remove redundant lint/format/publish jobs (handled by blueprint toolchain)

All workflows now call functions exposed by the go-cli blueprint:
- verify (repository + Go quality checks)
- build (multi-platform binaries)
- release (semantic-release + GitHub assets)
@o5carm o5carm changed the title fix: correct login error body read and validate CLI flags fix: correct login error, validate CLI flags, and migrate CI to go-cli blueprint Aug 11, 2026
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.

1 participant