Skip to content

Commit c026e47

Browse files
committed
chore(goreleaser): update build configuration and pre-build hooks
- Modified the `.goreleaser.yml` file to adjust the build configuration for the `forge` binary, changing the `main` field to point to the root directory and specifying the `dir` for the build. - Added a new pre-build hook to run `go mod tidy` in the `./cmd/forge` directory, ensuring dependencies are properly managed before the build process. Signed-off-by: Rex Raphael <rex.raphael@outlook.com>
1 parent 5b36d70 commit c026e47

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.goreleaser.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,19 @@ version: 2
44

55
project_name: forge
66

7-
# Pre-build hooks
7+
# Pre-build hooks (run in root module context)
88
before:
99
hooks:
1010
- go mod tidy
1111
- go mod verify
12+
- cmd: go mod tidy
13+
dir: ./cmd/forge
1214
- go generate ./...
1315

1416
builds:
1517
- id: forge
16-
main: ./cmd/forge
18+
dir: ./cmd/forge
19+
main: .
1720
binary: forge
1821
env:
1922
- CGO_ENABLED=0

0 commit comments

Comments
 (0)