Skip to content

Commit

Permalink
fix: fix test case
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 7d2c733 commit ccb24b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/downloader/toml.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func (ps *ModSpec) MarshalTOML() string {
var sb strings.Builder
if ps != nil && len(ps.Version) != 0 && len(ps.Name) != 0 {
if len(ps.Alias) == 0 {
sb.WriteString(ps.Version)
sb.WriteString(fmt.Sprintf("%q", ps.Version))
} else {
sb.WriteString(fmt.Sprintf(SOURCE_PATTERN, fmt.Sprintf("package = %q, version = %q", ps.Name, ps.Version)))
}
Expand Down

0 comments on commit ccb24b7

Please sign in to comment.