Skip to content

Commit ab9cf0f

Browse files
fix(release): use _plugin_dist/ instead of dist/ for plugin tarball
GoReleaser's --clean flag and dist directory lifecycle conflicts with before.hooks writing to dist/. Using a separate _plugin_dist/ directory avoids the "dist is not empty" error.
1 parent f342878 commit ab9cf0f

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ go.work.sum
3636

3737
# Local build output
3838
bin/
39+
_plugin_dist/
3940
/gog
4041
auth-server/auth-server
4142

.goreleaser.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ changelog:
77

88
before:
99
hooks:
10-
- mkdir -p dist
11-
- tar -czf dist/workit-plugin_{{ .Version }}.tar.gz -C plugins workit
10+
- mkdir -p _plugin_dist
11+
- tar -czf _plugin_dist/workit-plugin_{{ .Version }}.tar.gz -C plugins workit
1212

1313
builds:
1414
- id: wk
@@ -90,4 +90,4 @@ checksum:
9090

9191
release:
9292
extra_files:
93-
- glob: dist/workit-plugin_*.tar.gz
93+
- glob: _plugin_dist/workit-plugin_*.tar.gz

0 commit comments

Comments
 (0)