Skip to content

Commit

Permalink
fix: rm log 'adding' during updating the dependencies
Browse files Browse the repository at this point in the history
Signed-off-by: zongz <[email protected]>
  • Loading branch information
zong-zhe committed May 27, 2024
1 parent 7a4df5b commit 123e426
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
12 changes: 0 additions & 12 deletions pkg/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,18 +309,6 @@ func (c *KpmClient) resolvePkgDeps(kclPkg *pkg.KclPkg, lockDeps *pkg.Dependencie
// add the dependencies in kcl.mod which not in kcl.mod.lock
for name, d := range kclPkg.ModFile.Dependencies.Deps {
if _, ok := kclPkg.Dependencies.Deps[name]; !ok {
if len(d.Version) == 0 {
reporter.ReportMsgTo(
fmt.Sprintf("adding '%s'", name),
c.logWriter,
)
} else {
reporter.ReportMsgTo(
fmt.Sprintf("adding '%s' with version '%s'", name, d.Version),
c.logWriter,
)
}

kclPkg.Dependencies.Deps[name] = d
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
adding 'pkg2'
The_first_kcl_program: Hello World!

0 comments on commit 123e426

Please sign in to comment.