Skip to content

Commit

Permalink
fix: fix if cases
Browse files Browse the repository at this point in the history
Signed-off-by: zongz <zongzhe1024@163.com>
  • Loading branch information
zong-zhe committed Nov 13, 2024
1 parent a1ad9b5 commit db441b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/downloader/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func FindPackageByModSpec(root string, modSpec *ModSpec) (string, error) {
if matchesPackageSpec(kclModPath, modSpec) {
result = path
return filepath.SkipAll
} else {
} else if modSpec.Version == "" {
// If the package name specified, but version are not specified,
if utils.MatchesPackageName(kclModPath, modSpec.Name) {
// load the version from the kcl.mod file
Expand Down

0 comments on commit db441b5

Please sign in to comment.