Skip to content

Commit da488ef

Browse files
committed
deleted common container code
1 parent 96379eb commit da488ef

File tree

11 files changed

+9
-2095
lines changed

11 files changed

+9
-2095
lines changed

artifactory/utils/commandsummary/buildinfosummary.go

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,17 @@ import (
88

99
buildInfo "github.com/jfrog/build-info-go/entities"
1010
"github.com/jfrog/jfrog-cli-core/v2/artifactory/utils"
11-
"github.com/jfrog/jfrog-cli-core/v2/artifactory/utils/container"
1211
"github.com/jfrog/jfrog-client-go/utils/log"
1312
)
1413

1514
const (
16-
basicSummaryUpgradeNotice = "<a href=\"%s\">🐸 Enable the linkage to Artifactory</a>\n\n"
17-
modulesTitle = "📦 Modules published to Artifactory by this workflow"
18-
minTableColumnLength = 400
19-
markdownSpaceFiller = "&nbsp;"
20-
NonScannedResult = "non-scanned"
15+
basicSummaryUpgradeNotice = "<a href=\"%s\">🐸 Enable the linkage to Artifactory</a>\n\n"
16+
modulesTitle = "📦 Modules published to Artifactory by this workflow"
17+
minTableColumnLength = 400
18+
markdownSpaceFiller = "&nbsp;"
19+
NonScannedResult = "non-scanned"
20+
ManifestJsonFile = "manifest.json"
21+
AttestationsModuleIdPrefix string = "attestations"
2122
)
2223

2324
var (
@@ -290,7 +291,7 @@ func isSupportedModule(module *buildInfo.Module) bool {
290291
return false
291292
}
292293
if module.Type == buildInfo.Docker {
293-
return !strings.HasPrefix(module.Id, container.AttestationsModuleIdPrefix)
294+
return !strings.HasPrefix(module.Id, AttestationsModuleIdPrefix)
294295
}
295296
return true
296297
}
@@ -300,7 +301,7 @@ func createDockerMultiArchTitle(module *buildInfo.Module) string {
300301
parentImageName := strings.Split(module.Parent, ":")[0]
301302
var sha256 string
302303
for _, artifact := range module.Artifacts {
303-
if artifact.Name == container.ManifestJsonFile {
304+
if artifact.Name == ManifestJsonFile {
304305
sha256 = artifact.Sha256
305306
break
306307
}

0 commit comments

Comments
 (0)