@@ -74,7 +74,7 @@ <h1 class="title">Module <code>continuous_delivery_scripts.plugins.golang</code>
74
74
return [
75
75
"goreleaser",
76
76
"release",
77
- "--rm-dist ",
77
+ "--clean ",
78
78
"--release-notes",
79
79
f"{str(changelog)}",
80
80
]
@@ -95,6 +95,10 @@ <h1 class="title">Module <code>continuous_delivery_scripts.plugins.golang</code>
95
95
] # FIXME change version to latest when https://github.com/go101/golds/issues/26 is fixed
96
96
97
97
98
+ def _install_syft_command_list() -> List[str]:
99
+ return ["go", "install", "github.com/anchore/syft/cmd/syft@latest"]
100
+
101
+
98
102
def _install_goreleaser_command_list() -> List[str]:
99
103
return ["go", "install", "github.com/goreleaser/goreleaser@latest"]
100
104
@@ -120,6 +124,7 @@ <h1 class="title">Module <code>continuous_delivery_scripts.plugins.golang</code>
120
124
logger.info("Installing GoReleaser if missing.")
121
125
env = os.environ
122
126
env[ENVVAR_GO_MOD] = GO_MOD_ON_VALUE
127
+ check_call(_install_syft_command_list(), env=env)
123
128
check_call(_install_goreleaser_command_list(), env=env)
124
129
logger.info("Checking GoReleaser configuration.")
125
130
env[ENVVAR_GORELEASER_CUSTOMISED_TAG] = version
@@ -208,6 +213,7 @@ <h1 class="title">Module <code>continuous_delivery_scripts.plugins.golang</code>
208
213
logger.info("Installing GoReleaser if missing.")
209
214
env = os.environ
210
215
env[ENVVAR_GO_MOD] = GO_MOD_ON_VALUE
216
+ check_call(_install_syft_command_list(), env=env)
211
217
check_call(_install_goreleaser_command_list(), env=env)
212
218
tag = self.get_version_tag(version)
213
219
# The tag of the release must be retrieved
@@ -303,6 +309,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
303
309
logger.info("Installing GoReleaser if missing.")
304
310
env = os.environ
305
311
env[ENVVAR_GO_MOD] = GO_MOD_ON_VALUE
312
+ check_call(_install_syft_command_list(), env=env)
306
313
check_call(_install_goreleaser_command_list(), env=env)
307
314
tag = self.get_version_tag(version)
308
315
# The tag of the release must be retrieved
0 commit comments