Fix artifact test server

path.Join strips // from URLs, using fmt.Sprintf to fix URLForFile
This commit is contained in:
stefanprodan 2020-07-10 10:55:52 +03:00
parent 76b62e5389
commit cfc3d35cbf
1 changed files with 1 additions and 2 deletions

View File

@ -23,7 +23,6 @@ import (
"errors"
"fmt"
"os"
"path"
"path/filepath"
)
@ -84,7 +83,7 @@ func (s *ArtifactServer) URLForFile(file string) (string, error) {
if s.URL() == "" {
return "", errors.New("server must be started to be able to determine the URL of the given file")
}
return path.Join(s.URL(), file), nil
return fmt.Sprintf("%s/%s", s.URL(), file), nil
}
func calculateArtifactName(files []File) string {