@@ -74,7 +74,7 @@ <h1 class="title">Module <code>continuous_delivery_scripts.plugins.golang</code>
7474 return [
7575 "goreleaser",
7676 "release",
77- "--rm-dist ",
77+ "--clean ",
7878 "--release-notes",
7979 f"{str(changelog)}",
8080 ]
@@ -95,6 +95,10 @@ <h1 class="title">Module <code>continuous_delivery_scripts.plugins.golang</code>
9595 ] # FIXME change version to latest when https://github.com/go101/golds/issues/26 is fixed
9696
9797
98+ def _install_syft_command_list() -> List[str]:
99+ return ["go", "install", "github.com/anchore/syft/cmd/syft@latest"]
100+
101+
98102def _install_goreleaser_command_list() -> List[str]:
99103 return ["go", "install", "github.com/goreleaser/goreleaser@latest"]
100104
@@ -120,6 +124,7 @@ <h1 class="title">Module <code>continuous_delivery_scripts.plugins.golang</code>
120124 logger.info("Installing GoReleaser if missing.")
121125 env = os.environ
122126 env[ENVVAR_GO_MOD] = GO_MOD_ON_VALUE
127+ check_call(_install_syft_command_list(), env=env)
123128 check_call(_install_goreleaser_command_list(), env=env)
124129 logger.info("Checking GoReleaser configuration.")
125130 env[ENVVAR_GORELEASER_CUSTOMISED_TAG] = version
@@ -208,6 +213,7 @@ <h1 class="title">Module <code>continuous_delivery_scripts.plugins.golang</code>
208213 logger.info("Installing GoReleaser if missing.")
209214 env = os.environ
210215 env[ENVVAR_GO_MOD] = GO_MOD_ON_VALUE
216+ check_call(_install_syft_command_list(), env=env)
211217 check_call(_install_goreleaser_command_list(), env=env)
212218 tag = self.get_version_tag(version)
213219 # The tag of the release must be retrieved
@@ -303,6 +309,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
303309 logger.info("Installing GoReleaser if missing.")
304310 env = os.environ
305311 env[ENVVAR_GO_MOD] = GO_MOD_ON_VALUE
312+ check_call(_install_syft_command_list(), env=env)
306313 check_call(_install_goreleaser_command_list(), env=env)
307314 tag = self.get_version_tag(version)
308315 # The tag of the release must be retrieved
0 commit comments