Commit cafb027
committed
fix: address review feedback on binary rename
## What
Added explicit `binary: pvtr` to GoReleaser builds config so the
archive contains the correctly named binary. Changed the plugin
discovery filter from substring match to exact match so pvtr-* plugins
like pvtr-github-repo-scanner remain discoverable. Reverted the README
project structure directory name back to privateer/ since the repo is
not being renamed.
## Why
Copilot review correctly identified that GoReleaser would default the
binary name to the module name (privateer), causing Homebrew install to
fail. The substring filter would have hidden all pvtr-prefixed plugins
from env output.
## Notes
- The plugin filter now uses exact name matching (name == "pvtr" ||
name == "privateer") instead of strings.Contains
- project_name remains privateer (archive naming unchanged), only the
binary inside the archive is renamed to pvtr
Signed-off-by: jmeridth <jmeridth@gmail.com>1 parent e257865 commit cafb027
4 files changed
+18
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
124 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
125 | 135 | | |
126 | | - | |
127 | | - | |
| 136 | + | |
| 137 | + | |
128 | 138 | | |
129 | 139 | | |
130 | 140 | | |
| |||
0 commit comments