Skip to content

Commit

Permalink
fix(checksum): fix a bug that a checksum id of go_build type package …
Browse files Browse the repository at this point in the history
…is empty (aquaproj#2833)
  • Loading branch information
suzuki-shunsuke authored Apr 23, 2024
1 parent 463f2e3 commit 3f6f30e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/config/checksum.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func (p *Package) ChecksumID(rt *runtime.Runtime) (string, error) {
pkgInfo := p.PackageInfo
pkg := p.Package
switch pkgInfo.Type {
case PkgInfoTypeGitHubArchive:
case PkgInfoTypeGitHubArchive, PkgInfoTypeGoBuild:
return path.Join(pkgInfo.Type, "github.com", pkgInfo.RepoOwner, pkgInfo.RepoName, pkg.Version), nil
case PkgInfoTypeGitHubContent, PkgInfoTypeGitHubRelease:
return path.Join(pkgInfo.Type, "github.com", pkgInfo.RepoOwner, pkgInfo.RepoName, pkg.Version, assetName), nil
Expand Down

0 comments on commit 3f6f30e

Please sign in to comment.