Skip to content

Commit

Permalink
Merge pull request #331 from zong-zhe/fix-missing-sum
Browse files Browse the repository at this point in the history
fix: fix oci sum missing
  • Loading branch information
Peefy committed May 24, 2024
2 parents c2d54a4 + a611015 commit ec21ccf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -986,6 +986,7 @@ func (c *KpmClient) Download(dep *pkg.Dependency, homePath, localPath string) (*
dep.FullName = dep.GenDepFullName()
dep.LocalFullPath = filepath.Join(filepath.Dir(localPath), dep.FullName)
localPath = dep.LocalFullPath

if utils.DirExists(dep.LocalFullPath) {
dpkg, err := c.LoadPkgFromPath(localPath)
if err != nil {
Expand Down Expand Up @@ -1510,6 +1511,8 @@ func (c *KpmClient) DownloadDeps(deps *pkg.Dependencies, lockDeps *pkg.Dependenc
errors.CheckSumMismatchError,
fmt.Sprintf("checksum for '%s' changed in lock file '%s' and '%s'", lockedDep.Name, expectedSum, lockedDep.Sum),
)
} else {
lockedDep.Sum = lockDeps.Deps[d.Name].Sum
}
}

Expand Down

0 comments on commit ec21ccf

Please sign in to comment.