chore(build): rename binary to gosick
This commit is contained in:
@@ -15,7 +15,7 @@ just go-build
|
|||||||
Or directly with Go:
|
Or directly with Go:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
go build -o dist/homesick-go ./cmd/homesick
|
go build -o dist/gosick ./cmd/homesick
|
||||||
```
|
```
|
||||||
|
|
||||||
## Commands
|
## Commands
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ set -euo pipefail
|
|||||||
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
repo_root="$(cd "$script_dir/.." && pwd)"
|
repo_root="$(cd "$script_dir/.." && pwd)"
|
||||||
|
|
||||||
if [[ -x "$repo_root/dist/homesick-go" ]]; then
|
if [[ -x "$repo_root/dist/gosick" ]]; then
|
||||||
exec "$repo_root/dist/homesick-go" "$@"
|
exec "$repo_root/dist/gosick" "$@"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exec go run "$repo_root/cmd/homesick" "$@"
|
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.
|
- CLI argument parsing migrated to Kong.
|
||||||
- Git operations for clone and track migrated to `go-git`.
|
- 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.
|
- Release notes standardized to Keep a Changelog format.
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ COPY go.mod go.sum /workspace/
|
|||||||
RUN go mod download
|
RUN go mod download
|
||||||
COPY . /workspace
|
COPY . /workspace
|
||||||
RUN mkdir -p /workspace/dist && \
|
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
|
FROM alpine:3.21
|
||||||
|
|
||||||
@@ -16,6 +16,6 @@ RUN apk add --no-cache \
|
|||||||
|
|
||||||
WORKDIR /workspace
|
WORKDIR /workspace
|
||||||
COPY . /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"]
|
ENTRYPOINT ["/workspace/test/behavior/behavior_suite.sh"]
|
||||||
|
|||||||
4
justfile
4
justfile
@@ -5,11 +5,11 @@ default:
|
|||||||
|
|
||||||
go-build:
|
go-build:
|
||||||
@mkdir -p dist
|
@mkdir -p dist
|
||||||
go build -o dist/homesick-go ./cmd/homesick
|
go build -o dist/gosick ./cmd/homesick
|
||||||
|
|
||||||
go-build-linux:
|
go-build-linux:
|
||||||
@mkdir -p dist
|
@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:
|
||||||
go test ./...
|
go test ./...
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
: "${HOMESICK_CMD:=/workspace/dist/homesick-go}"
|
: "${HOMESICK_CMD:=/workspace/dist/gosick}"
|
||||||
behavior_verbose="${BEHAVIOR_VERBOSE:-0}"
|
behavior_verbose="${BEHAVIOR_VERBOSE:-0}"
|
||||||
|
|
||||||
while [[ $# -gt 0 ]]; do
|
while [[ $# -gt 0 ]]; do
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
: "${HOMESICK_CMD:=/workspace/dist/homesick-go}"
|
: "${HOMESICK_CMD:=/workspace/dist/gosick}"
|
||||||
: "${BEHAVIOR_VERBOSE:=0}"
|
: "${BEHAVIOR_VERBOSE:=0}"
|
||||||
|
|
||||||
RUN_OUTPUT=""
|
RUN_OUTPUT=""
|
||||||
|
|||||||
Reference in New Issue
Block a user