Skip to content

Commit

Permalink
Merge pull request #525 from kcl-lang/rm-modspec-tostring
Browse files Browse the repository at this point in the history
fix: rm ModSpec in ToString of Source
  • Loading branch information
Peefy authored Nov 7, 2024
2 parents 1e2a6a9 + d55c114 commit b05e196
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 b05e196

Please sign in to comment.