Skip to content

Commit

Permalink
fix: rm ModSpec in ToString of Source
Browse files Browse the repository at this point in the history
Signed-off-by: zongz <[email protected]>
  • Loading branch information
zong-zhe committed Nov 7, 2024
1 parent 1e2a6a9 commit d55c114
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions pkg/downloader/source.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,17 +331,6 @@ func (source *Source) ToString() (string, error) {
return "", err
}
}
if source.ModSpec != nil {
url, err := url.Parse(sourceStr)
if err != nil {
return "", err
}

q := url.Query()
q.Set(constants.Mod, source.ModSpec.ToString())
url.RawQuery = q.Encode()
sourceStr = url.String()
}

return sourceStr, nil
}
Expand Down

0 comments on commit d55c114

Please sign in to comment.