1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-02-03 13:11:48 +02:00

fix: blob: filepath on url (#1521)

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
This commit is contained in:
Carlos Alexandro Becker 2020-05-17 13:48:33 -03:00 committed by GitHub
parent 983f342ab8
commit be1d4d629f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,7 @@ import (
"io"
"io/ioutil"
"net/url"
"path/filepath"
"path"
"github.com/apex/log"
"github.com/goreleaser/goreleaser/internal/artifact"
@ -101,7 +101,7 @@ func doUpload(ctx *context.Context, conf config.Blob) error {
return err
}
if err := up.Upload(ctx, filepath.Join(folder, artifact.Name), data); err != nil {
if err := up.Upload(ctx, path.Join(folder, artifact.Name), data); err != nil {
return handleError(err, bucketURL)
}
return err