gosick #1

Merged
DelphicOkami merged 162 commits from gosick into main 2026-03-21 23:08:00 +00:00
7 changed files with 10 additions and 9 deletions
Showing only changes of commit 0dfacc31d4 - Show all commits

View File

@@ -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

View File

@@ -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" "$@"

View File

@@ -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

View File

@@ -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"]

View File

@@ -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 ./...

View File

@@ -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

View File

@@ -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=""