Skip to content

Commit 4005c81

Browse files
committed
specs-go: add missing deprecation comment for Hooks.Prestart
Hooks.Prestart was deprecated in c166268 (v1.0.2), but the field did not have a correctly formatted deprecation comment. This patch updates the field's GoDoc to have a correctly formatted deprecation comment, which will allow linters and IDEs to detect the deprecation status of this feature. Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent c0e9043 commit 4005c81

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

specs-go/config.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,10 @@ type Hook struct {
187187
type Hooks struct {
188188
// Prestart is Deprecated. Prestart is a list of hooks to be run before the container process is executed.
189189
// It is called in the Runtime Namespace
190+
//
191+
// Deprecated: use [Hooks.CreateRuntime], [Hooks.CreateContainer], and
192+
// [Hooks.StartContainer] instead, which allow more granular hook control
193+
// during the create and start phase.
190194
Prestart []Hook `json:"prestart,omitempty"`
191195
// CreateRuntime is a list of hooks to be run after the container has been created but before pivot_root or any equivalent operation has been called
192196
// It is called in the Runtime Namespace

0 commit comments

Comments
 (0)