From 9749a587477d5a14850f0f41b8e1235dc9b13af9 Mon Sep 17 00:00:00 2001 From: Shunsuke Suzuki Date: Sun, 22 Sep 2024 02:47:59 +0900 Subject: [PATCH] fix: ignore no_asset and error_message --- pkg/config/registry/package_info.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/config/registry/package_info.go b/pkg/config/registry/package_info.go index 37ce02cda..e1a60dd9c 100644 --- a/pkg/config/registry/package_info.go +++ b/pkg/config/registry/package_info.go @@ -669,6 +669,9 @@ func (p *PackageInfo) defaultCmdName() string { var placeHolderTemplate = regexp.MustCompile(`{{.*?}}`) func (p *PackageInfo) pkgPaths() []string { + if p.NoAsset || p.ErrorMessage != "" { + return nil + } switch p.Type { case PkgInfoTypeGitHubArchive, PkgInfoTypeGoBuild, PkgInfoTypeGitHubContent, PkgInfoTypeGitHubRelease: if p.RepoOwner == "" || p.RepoName == "" {