fix(release): create download directories, refuse duplicate asset names and empty notes (follow gh)

Signed-off-by: bircni <bircni@icloud.com>
This commit is contained in:
bircni committed 2026-10-18 20:00:24 +02:00
1 parent c97044f76c
commit 90df795abb
5 files changed
+41

No files matched your search

+3
View File
@@ -87,6 +87,9 @@ func (a *application) download(cmd *cobra.Command, f downloadFlags, path string,
if path == "-" {
return writeTerminalSafe(cmd.OutOrStdout(), a.deps.Streams.OutTTY, body)
}
if err := os.MkdirAll(filepath.Dir(path), 0o777); err != nil {
return err
}
return publish(cmd, path, false, f.clobber, func(destination io.Writer) error {
_, err := io.Copy(destination, body)
return err