Skip to content

Commit

Permalink
fix: add update flag to kpm metadata
Browse files Browse the repository at this point in the history
Signed-off-by: zongz <[email protected]>
  • Loading branch information
zong-zhe committed May 24, 2024
1 parent e0fb793 commit ef37c0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ func (c *KpmClient) resolvePkgDeps(kclPkg *pkg.KclPkg, lockDeps *pkg.Dependencie
}

// Generate file kcl.mod.lock.
if !kclPkg.NoSumCheck {
if !kclPkg.NoSumCheck || !update {
err := kclPkg.LockDepsVersion()
if err != nil {
return err
Expand Down

0 comments on commit ef37c0e

Please sign in to comment.