From d30376d5e0d58906d0cda489bad67972f56e9de1 Mon Sep 17 00:00:00 2001 From: Nicolas Bender Date: Wed, 15 May 2024 11:05:07 +0200 Subject: [PATCH] Add Deprecated comment to all stack related identifiers Co-authored-by: Ralf Pannemans Signed-off-by: Nicolas Bender --- build.go | 2 +- buildpack.go | 4 ++-- generate.go | 2 +- platform.go | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/build.go b/build.go index 5a5ab19..a0c9788 100644 --- a/build.go +++ b/build.go @@ -55,7 +55,7 @@ type BuildContext struct { // Platform is the contents of the platform. Platform Platform - // StackID is the ID of the stack. + // Deprecated: StackID is the ID of the stack. StackID string } diff --git a/buildpack.go b/buildpack.go index a81ba2c..a2d9261 100644 --- a/buildpack.go +++ b/buildpack.go @@ -76,7 +76,7 @@ type BuildpackOrder struct { Groups []BuildpackOrderBuildpack `toml:"group"` } -// BuildpackStack is a stack supported by the buildpack. +// Deprecated: BuildpackStack is a stack supported by the buildpack. type BuildpackStack struct { // ID is the id of the stack. ID string `toml:"id"` @@ -96,7 +96,7 @@ type Buildpack struct { // Path is the path to the buildpack. Path string `toml:"-"` - // Stacks is the collection of stacks supported by the buildpack. + // Deprecated: Stacks is the collection of stacks supported by the buildpack. Stacks []BuildpackStack `toml:"stacks"` // Metadata is arbitrary metadata attached to the buildpack. diff --git a/generate.go b/generate.go index 600b13c..407a554 100644 --- a/generate.go +++ b/generate.go @@ -50,7 +50,7 @@ type GenerateContext struct { // Platform is the contents of the platform. Platform Platform - // StackID is the ID of the stack. + // Deprecated: StackID is the ID of the stack. StackID string } diff --git a/platform.go b/platform.go index a9c09c5..e2ebf4f 100644 --- a/platform.go +++ b/platform.go @@ -65,7 +65,7 @@ const ( // EnvBuildPlanPath is the name of the environment variable that contains the path to the build plan EnvBuildPlanPath = "CNB_BP_PLAN_PATH" - // EnvStackID is the name of the environment variable that contains the stack id + // Deprecated: EnvStackID is the name of the environment variable that contains the stack id EnvStackID = "CNB_STACK_ID" // DefaultPlatformBindingsLocation is the typical location for bindings, which exists under the platform directory