Skip to content

Commit

Permalink
remove extra slash in url
Browse files Browse the repository at this point in the history
  • Loading branch information
annabarnes1138 committed May 26, 2021
1 parent 6331c6e commit a65de97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/releaser/releaser.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,12 @@ func (r *Releaser) UpdateIndexFile() (bool, error) {
indexUrl := fmt.Sprintf("%s/index.yaml", r.config.ChartsRepo)
if r.config.Token != "" {
chartsRepoUrl, _ := url.Parse(r.config.ChartsRepo)
indexUrl = fmt.Sprintf("%s://%s@%s/%s/index.yaml",
indexUrl = fmt.Sprintf("%s://%s@%s%s/index.yaml",
chartsRepoUrl.Scheme, r.config.Token,
chartsRepoUrl.Host, chartsRepoUrl.Path)
}

fmt.Printf("Retrieving index file from: %s", indexUrl)
fmt.Printf("Retrieving index file from: %s\n", indexUrl)
resp, err := r.httpClient.Get(indexUrl)
if err != nil {
return false, err
Expand Down

0 comments on commit a65de97

Please sign in to comment.