diff --git a/acceptance/testdata/pack_fixtures/report_output.txt b/acceptance/testdata/pack_fixtures/report_output.txt index 1b14e5f956..66cf032d80 100644 --- a/acceptance/testdata/pack_fixtures/report_output.txt +++ b/acceptance/testdata/pack_fixtures/report_output.txt @@ -4,5 +4,7 @@ Pack: Default Lifecycle Version: 0.9.1 +Supported Platform APIs: 0.3, 0.4 + Config: default-builder-image = "{{ .DefaultBuilder }}" diff --git a/internal/commands/report.go b/internal/commands/report.go index 500cdbb0f3..c3cc76608e 100644 --- a/internal/commands/report.go +++ b/internal/commands/report.go @@ -11,6 +11,7 @@ import ( "github.com/spf13/cobra" + "github.com/buildpacks/pack/internal/build" "github.com/buildpacks/pack/internal/builder" "github.com/buildpacks/pack/internal/config" "github.com/buildpacks/pack/logging" @@ -48,6 +49,8 @@ func generateOutput(writer io.Writer, version string, explicit bool) error { Default Lifecycle Version: {{ .DefaultLifecycleVersion }} +Supported Platform APIs: {{ .SupportedPlatformAPIs }} + Config: {{ .Config -}}`)) @@ -68,11 +71,14 @@ Config: configData = strings.TrimRight(padded.String(), " \n") } + platformAPIs := strings.Join(build.SupportedPlatformAPIVersions.AsStrings(), ", ") + return tpl.Execute(writer, map[string]string{ "Version": version, "OS": runtime.GOOS, "Arch": runtime.GOARCH, "DefaultLifecycleVersion": builder.DefaultLifecycleVersion, + "SupportedPlatformAPIs": platformAPIs, "Config": configData, }) }