From 0dfacc31d4cb6a0ef9ba0031b979556647ff426b Mon Sep 17 00:00:00 2001 From: Micheal Wilkinson Date: Thu, 19 Mar 2026 16:33:45 +0000 Subject: [PATCH] chore(build): rename binary to gosick --- README.md | 2 +- bin/homesick | 4 ++-- changelog.md | 1 + docker/behavior/Dockerfile | 4 ++-- justfile | 4 ++-- script/run-behavior-suite-docker.sh | 2 +- test/behavior/behavior_suite.sh | 2 +- 7 files changed, 10 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 5351707..12e169e 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ just go-build Or directly with Go: ```bash -go build -o dist/homesick-go ./cmd/homesick +go build -o dist/gosick ./cmd/homesick ``` ## Commands diff --git a/bin/homesick b/bin/homesick index d36558e..c3909a7 100755 --- a/bin/homesick +++ b/bin/homesick @@ -4,8 +4,8 @@ set -euo pipefail script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" repo_root="$(cd "$script_dir/.." && pwd)" -if [[ -x "$repo_root/dist/homesick-go" ]]; then - exec "$repo_root/dist/homesick-go" "$@" +if [[ -x "$repo_root/dist/gosick" ]]; then + exec "$repo_root/dist/gosick" "$@" fi exec go run "$repo_root/cmd/homesick" "$@" diff --git a/changelog.md b/changelog.md index 8b215f8..800c710 100644 --- a/changelog.md +++ b/changelog.md @@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - CLI argument parsing migrated to Kong. - Git operations for clone and track migrated to `go-git`. +- Build and behavior workflows now produce and run the `gosick` binary name. - Release notes standardized to Keep a Changelog format. ### Fixed diff --git a/docker/behavior/Dockerfile b/docker/behavior/Dockerfile index e5d0eab..3b38b4a 100644 --- a/docker/behavior/Dockerfile +++ b/docker/behavior/Dockerfile @@ -5,7 +5,7 @@ COPY go.mod go.sum /workspace/ RUN go mod download COPY . /workspace RUN mkdir -p /workspace/dist && \ - go build -o /workspace/dist/homesick-go ./cmd/homesick + go build -o /workspace/dist/gosick ./cmd/homesick FROM alpine:3.21 @@ -16,6 +16,6 @@ RUN apk add --no-cache \ WORKDIR /workspace COPY . /workspace -COPY --from=builder /workspace/dist/homesick-go /workspace/dist/homesick-go +COPY --from=builder /workspace/dist/gosick /workspace/dist/gosick ENTRYPOINT ["/workspace/test/behavior/behavior_suite.sh"] diff --git a/justfile b/justfile index 9267197..ea5dabb 100644 --- a/justfile +++ b/justfile @@ -5,11 +5,11 @@ default: go-build: @mkdir -p dist - go build -o dist/homesick-go ./cmd/homesick + go build -o dist/gosick ./cmd/homesick go-build-linux: @mkdir -p dist - GOOS=linux GOARCH="$(go env GOARCH)" go build -o dist/homesick-go ./cmd/homesick + GOOS=linux GOARCH="$(go env GOARCH)" go build -o dist/gosick ./cmd/homesick go-test: go test ./... diff --git a/script/run-behavior-suite-docker.sh b/script/run-behavior-suite-docker.sh index 3dd736a..446fa28 100755 --- a/script/run-behavior-suite-docker.sh +++ b/script/run-behavior-suite-docker.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -euo pipefail -: "${HOMESICK_CMD:=/workspace/dist/homesick-go}" +: "${HOMESICK_CMD:=/workspace/dist/gosick}" behavior_verbose="${BEHAVIOR_VERBOSE:-0}" while [[ $# -gt 0 ]]; do diff --git a/test/behavior/behavior_suite.sh b/test/behavior/behavior_suite.sh index e8fff28..93ccfa1 100755 --- a/test/behavior/behavior_suite.sh +++ b/test/behavior/behavior_suite.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -euo pipefail -: "${HOMESICK_CMD:=/workspace/dist/homesick-go}" +: "${HOMESICK_CMD:=/workspace/dist/gosick}" : "${BEHAVIOR_VERBOSE:=0}" RUN_OUTPUT=""