Skip to content

Commit 9592196

Browse files
authored
Merge pull request #81 from fluxcd/fix-testersrv
Fix artifact test server
2 parents 76b62e5 + cfc3d35 commit 9592196

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/testserver/artifact.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import (
2323
"errors"
2424
"fmt"
2525
"os"
26-
"path"
2726
"path/filepath"
2827
)
2928

@@ -84,7 +83,7 @@ func (s *ArtifactServer) URLForFile(file string) (string, error) {
8483
if s.URL() == "" {
8584
return "", errors.New("server must be started to be able to determine the URL of the given file")
8685
}
87-
return path.Join(s.URL(), file), nil
86+
return fmt.Sprintf("%s/%s", s.URL(), file), nil
8887
}
8988

9089
func calculateArtifactName(files []File) string {

0 commit comments

Comments
 (0)