chore(build): rename binary to gosick
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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" "$@"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"]
|
||||
|
||||
4
justfile
4
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 ./...
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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=""
|
||||
|
||||
Reference in New Issue
Block a user