diff --git a/CHANGELOG.md b/CHANGELOG.md index 124c2d5..ac1e7bd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,14 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Fixed +- **The install scripts' build-from-source fallback names the module in `src/`.** + `src/scripts/install.sh` and `install.ps1` fell back to + `go install github.com/simtabi/vigil/cmd/vigil@latest`, the path from before the + module moved into `src/`, which resolves to the frozen 0.7.0. They now use + `github.com/simtabi/vigil/src/cmd/vigil@latest`. The fallback runs only when the + release download fails. + ### Changed - **Binary releases are on hold; the release workflow runs only on a confirmed manual dispatch.** A tag push no longer starts GoReleaser. A release is diff --git a/src/scripts/install.ps1 b/src/scripts/install.ps1 index 1915310..d099f8e 100644 --- a/src/scripts/install.ps1 +++ b/src/scripts/install.ps1 @@ -40,7 +40,7 @@ catch { if (Get-Command go -ErrorAction SilentlyContinue) { Write-Host "Building from source..." $env:GOBIN = $Prefix - go install "github.com/$repo/cmd/vigil@latest" + go install "github.com/$repo/src/cmd/vigil@latest" } else { throw "Go not found and download failed." } } diff --git a/src/scripts/install.sh b/src/scripts/install.sh index 22491f7..ab87bf2 100644 --- a/src/scripts/install.sh +++ b/src/scripts/install.sh @@ -64,7 +64,7 @@ if curl $dl_opts "${BASE}/${asset}" -o "${tmp}/${asset}" && curl -fsSL "${BASE}/ else echo "Download failed; trying to build from source..." >&2 command -v go >/dev/null 2>&1 || { echo "Go not found and download failed." >&2; exit 1; } - GOBIN="$PREFIX" go install "github.com/${REPO}/cmd/vigil@latest" + GOBIN="$PREFIX" go install "github.com/${REPO}/src/cmd/vigil@latest" echo "Installed (from source): ${PREFIX}/vigil" fi