From a9bf9223c9cda5e3135466ba602532e630ef9c82 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Sun, 10 Nov 2019 10:45:13 +0100 Subject: [PATCH] Rename PreBuildSteps in Prelude --- pkg/compiler/spec.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pkg/compiler/spec.go b/pkg/compiler/spec.go index 255af6b5..201b525f 100644 --- a/pkg/compiler/spec.go +++ b/pkg/compiler/spec.go @@ -24,12 +24,12 @@ import ( ) type LuetCompilationSpec struct { - Steps []string `json:"steps"` // Are run inside a container and the result layer diff is saved - PreBuildSteps []string `json:"pre_steps"` // Are run inside the image which will be our builder - Image string `json:"image"` - Seed string `json:"seed"` - Package pkg.Package `json:"-"` - OutputPath string `json:"-"` // Where the build processfiles go + Steps []string `json:"steps"` // Are run inside a container and the result layer diff is saved + Prelude []string `json:"prelude"` // Are run inside the image which will be our builder + Image string `json:"image"` + Seed string `json:"seed"` + Package pkg.Package `json:"-"` + OutputPath string `json:"-"` // Where the build processfiles go } func NewLuetCompilationSpec(b []byte, p pkg.Package) (CompilationSpec, error) { @@ -51,7 +51,7 @@ func (cs *LuetCompilationSpec) BuildSteps() []string { } func (cs *LuetCompilationSpec) GetPreBuildSteps() []string { - return cs.PreBuildSteps + return cs.Prelude } func (cs *LuetCompilationSpec) GetSeedImage() string {