Skip to content

Commit 0b03fd3

Browse files
committed
Merge remote-tracking branch 'origin/master' into version/0-48-0-RC1
2 parents b514b49 + 5b744f7 commit 0b03fd3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

internal/runners/publish/publish.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,9 @@ func (r *Runner) Run(params *Params) error {
9292
return locale.NewInputError("err_uploadingredient_file_not_found", "File not found: {{.V0}}", params.Filepath)
9393
}
9494
if !strings.HasSuffix(strings.ToLower(params.Filepath), ".zip") &&
95-
!strings.HasSuffix(strings.ToLower(params.Filepath), ".tar.gz") {
96-
return locale.NewInputError("err_uploadingredient_file_not_supported", "Expected file extension to be either .zip or .tar.gz: '{{.V0}}'", params.Filepath)
95+
!strings.HasSuffix(strings.ToLower(params.Filepath), ".tar.gz") &&
96+
!strings.HasSuffix(strings.ToLower(params.Filepath), ".whl") {
97+
return locale.NewInputError("err_uploadingredient_file_not_supported", "Expected file extension: .zip, .tar.gz or .whl: '{{.V0}}'", params.Filepath)
9798
}
9899
} else if !params.Edit {
99100
return locale.NewInputError("err_uploadingredient_file_required", "You have to supply the source archive unless editing.")

0 commit comments

Comments
 (0)