Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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." }
}
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Loading