aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2016-11-09 06:46:46 +0800
committerGitHub <noreply@github.com>2016-11-09 06:46:46 +0800
commit8b1df1a259fe6dc4c15e391e9c0762c9621d9d72 (patch)
tree9f647c583c2e29c62191940f3b12f36ab11a4b6c /build
parent9bc97a5785d3d350a084b46fc77a8439b8dc533b (diff)
downloadgo-tangerine-8b1df1a259fe6dc4c15e391e9c0762c9621d9d72.tar
go-tangerine-8b1df1a259fe6dc4c15e391e9c0762c9621d9d72.tar.gz
go-tangerine-8b1df1a259fe6dc4c15e391e9c0762c9621d9d72.tar.bz2
go-tangerine-8b1df1a259fe6dc4c15e391e9c0762c9621d9d72.tar.lz
go-tangerine-8b1df1a259fe6dc4c15e391e9c0762c9621d9d72.tar.xz
go-tangerine-8b1df1a259fe6dc4c15e391e9c0762c9621d9d72.tar.zst
go-tangerine-8b1df1a259fe6dc4c15e391e9c0762c9621d9d72.zip
build: fix remote path for archive uploads (#3243)
archiveUpload did not handle absolute paths correctly. Fix it by using the basename and ensure that uploads can be tested using -n.
Diffstat (limited to 'build')
-rw-r--r--build/ci.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/build/ci.go b/build/ci.go
index f5ef54b75..691f5233e 100644
--- a/build/ci.go
+++ b/build/ci.go
@@ -359,11 +359,11 @@ func archiveUpload(archive string, blobstore string, signer string) error {
Token: os.Getenv("AZURE_BLOBSTORE_TOKEN"),
Container: strings.SplitN(blobstore, "/", 2)[1],
}
- if err := build.AzureBlobstoreUpload(archive, archive, auth); err != nil {
+ if err := build.AzureBlobstoreUpload(archive, filepath.Base(archive), auth); err != nil {
return err
}
if signer != "" {
- if err := build.AzureBlobstoreUpload(archive+".asc", archive+".asc", auth); err != nil {
+ if err := build.AzureBlobstoreUpload(archive+".asc", filepath.Base(archive+".asc"), auth); err != nil {
return err
}
}