MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / versionStringAttTransient

Function versionStringAttTransient

app/cli/cmd/attestation_status.go:333–347  ·  view source on GitHub ↗

Transient state It's a prerelease that will be released It's an already released version It's a pre-release that will not be released

(p *action.ProjectVersion)

Source from the content-addressed store, hash-verified

331// It's a pre-release that will not be released
332
333func versionStringAttTransient(p *action.ProjectVersion) string {
334 if p == nil {
335 return ""
336 }
337
338 if p.Prerelease && p.MarkAsReleased {
339 return fmt.Sprintf("%s (will be released)", p.Version)
340 }
341
342 if !p.Prerelease {
343 return fmt.Sprintf("%s (already released)", p.Version)
344 }
345
346 return fmt.Sprintf("%s (prerelease)", p.Version)
347}
348
349// Final state
350// The pre-release is still a pre-release

Callers 1

versionStringAttestationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected