Skip to content

feat(remove-bash): drop bash fallback, fail loudly on unsupported triples (#19)#33

Merged
nmccready merged 1 commit into
fix/issue-20-install-channelsfrom
fix/issue-19-remove-bash-impl
May 19, 2026
Merged

feat(remove-bash): drop bash fallback, fail loudly on unsupported triples (#19)#33
nmccready merged 1 commit into
fix/issue-20-install-channelsfrom
fix/issue-19-remove-bash-impl

Conversation

@nmccready
Copy link
Copy Markdown
Contributor

Summary

Stacked on #32 (install channels) — merge that first, then this.

  • Deleted src/sh/sync-agents.sh — bash implementation gone
  • bin/sync-agents.js: removed fallbackShellScript() branch; unsupported triples now exit 1 with an actionable error pointing to go install, brew, and GitHub Releases
  • package.json: removed lint (shellcheck), test:sh, concurrently devDep; test delegates to make test; files array no longer ships src/**/*
  • Makefile: test target no longer sets SYNC_AGENTS_BIN=bin/sync-agents (bats defaults to it directly now)
  • test/sync-agents.bats: resolver points at bin/sync-agents (Go binary) instead of the bash script; SYNC_AGENTS_BIN env override kept for CI flexibility

Test plan

  • go build ./... passes (verified locally)
  • make build && npx bats test/sync-agents.bats runs against the Go binary
  • npm test runs via make test without shellcheck or concurrently
  • On an unsupported triple (or with platform package removed), npx @brickhouse-tech/sync-agents prints the install-channel error and exits 1

Closes #19

🤖 Generated with Claude Code

…ples (#19)

- Delete src/sh/sync-agents.sh — bash implementation removed
- bin/sync-agents.js: remove fallback branch; unsupported triples now exit 1
  with a clear message pointing to go install / brew / GitHub Releases
- package.json: drop lint (shellcheck), test:sh, concurrently devDep;
  test script delegates to make test; files array no longer includes src/**/*
- Makefile test target: remove SYNC_AGENTS_BIN=bin/sync-agents prefix
- test/sync-agents.bats: resolve Go binary by default (bin/sync-agents)
  instead of the bash script; SYNC_AGENTS_BIN override kept for CI flexibility

Closes #19

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@nmccready nmccready merged commit 325a904 into fix/issue-20-install-channels May 19, 2026
2 checks passed
@nmccready nmccready deleted the fix/issue-19-remove-bash-impl branch May 19, 2026 04:13
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