fix(ci): fix build step output path conflict
ci / vet, staticcheck, test, build (push) Successful in 2m47s
ci / vet, staticcheck, test, build (push) Successful in 2m47s
go build ./cmd/... tried to write a binary named "cmd" which conflicts with the source directory of the same name; pass -o /dev/null so the build step only verifies compilation without writing output. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -37,4 +37,4 @@ jobs:
|
||||
run: go test ./...
|
||||
|
||||
- name: build
|
||||
run: go build ./cmd/...
|
||||
run: go build -o /dev/null ./cmd/...
|
||||
|
||||
@@ -3,6 +3,12 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
Format: [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
||||
|
||||
## [0.4.1] - 2026-07-07
|
||||
|
||||
### Fixed
|
||||
|
||||
- **CI build step** — `go build ./cmd/...` failed with "output already exists and is a directory" because Go tried to write a binary named `cmd`, conflicting with the source directory; fixed by passing `-o /dev/null`
|
||||
|
||||
## [0.4.0] - 2026-07-07
|
||||
|
||||
### Added
|
||||
|
||||
Reference in New Issue
Block a user