@@ -41,7 +41,7 @@ def _generate_goreleaser_release_command_list(changelog: Path) -> List[str]:
41
41
return [
42
42
"goreleaser" ,
43
43
"release" ,
44
- "--rm-dist " ,
44
+ "--clean " ,
45
45
"--release-notes" ,
46
46
f"{ str (changelog )} " ,
47
47
]
@@ -62,6 +62,10 @@ def _install_golds_command_list() -> List[str]:
62
62
] # FIXME change version to latest when https://github.com/go101/golds/issues/26 is fixed
63
63
64
64
65
+ def _install_syft_command_list () -> List [str ]:
66
+ return ["go" , "install" , "github.com/anchore/syft/cmd/syft@latest" ]
67
+
68
+
65
69
def _install_goreleaser_command_list () -> List [str ]:
66
70
return ["go" , "install" , "github.com/goreleaser/goreleaser@latest" ]
67
71
@@ -87,6 +91,7 @@ def _call_goreleaser_check(version: str) -> None:
87
91
logger .info ("Installing GoReleaser if missing." )
88
92
env = os .environ
89
93
env [ENVVAR_GO_MOD ] = GO_MOD_ON_VALUE
94
+ check_call (_install_syft_command_list (), env = env )
90
95
check_call (_install_goreleaser_command_list (), env = env )
91
96
logger .info ("Checking GoReleaser configuration." )
92
97
env [ENVVAR_GORELEASER_CUSTOMISED_TAG ] = version
@@ -175,6 +180,7 @@ def _call_goreleaser_release(self, version: str) -> None:
175
180
logger .info ("Installing GoReleaser if missing." )
176
181
env = os .environ
177
182
env [ENVVAR_GO_MOD ] = GO_MOD_ON_VALUE
183
+ check_call (_install_syft_command_list (), env = env )
178
184
check_call (_install_goreleaser_command_list (), env = env )
179
185
tag = self .get_version_tag (version )
180
186
# The tag of the release must be retrieved
0 commit comments