Skip to content

Commit

Permalink
Add Deprecated comment to all stack related identifiers
Browse files Browse the repository at this point in the history
Co-authored-by: Ralf Pannemans <[email protected]>
Signed-off-by: Nicolas Bender <[email protected]>
  • Loading branch information
nicolasbender and c0d1ngm0nk3y committed May 15, 2024
1 parent ecdde19 commit d30376d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
4 changes: 2 additions & 2 deletions buildpack.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand All @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
2 changes: 1 addition & 1 deletion platform.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d30376d

Please sign in to comment.