Skip to content

Commit c5b2c3d

Browse files
committed
fix(ci): inline cd in goreleaser before-hook (map form rejected by OSS v2.15.4)
GoReleaser v2.15.4 OSS rejects the 'cmd:/dir:' map form in before.hooks with 'cannot unmarshal !!map into string' even though the schema documents it. Use 'sh -c' to cd into the provider module instead.
1 parent 676c22c commit c5b2c3d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

pulumi/.goreleaser.pulumi.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ before:
1616
# tampered source. Tidy-drift is enforced upstream in the prerequisites
1717
# workflow: if `go mod tidy` would produce a diff, the release fails
1818
# before this hook runs.
19-
- cmd: go mod download
20-
dir: provider
21-
- cmd: go mod verify
22-
dir: provider
19+
# NB: GoReleaser v2.15.4 OSS rejects the `cmd:/dir:` map form in
20+
# before.hooks ("cannot unmarshal !!map into string"), so we inline `cd`.
21+
- sh -c "cd provider && go mod download"
22+
- sh -c "cd provider && go mod verify"
2323

2424
builds:
2525
- env:

0 commit comments

Comments
 (0)