Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(images-dependencies): rename imports to dependencies
Rename "imports*" stapel build stages to "dependencies*", do not change stages digests.
- Loading branch information
1 parent
a8b7737
commit 725fbc9
Showing
13 changed files
with
149 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package stage | ||
|
||
import "github.com/werf/werf/pkg/config" | ||
|
||
func GenerateDependenciesAfterInstallStage(imageBaseConfig *config.StapelImageBase, baseStageOptions *NewBaseStageOptions) *DependenciesAfterInstallStage { | ||
imports := getImports(imageBaseConfig, &getImportsOptions{After: Install}) | ||
if len(imports) != 0 { | ||
return newDependenciesAfterInstallStage(imports, baseStageOptions) | ||
} | ||
|
||
return nil | ||
} | ||
|
||
func newDependenciesAfterInstallStage(imports []*config.Import, baseStageOptions *NewBaseStageOptions) *DependenciesAfterInstallStage { | ||
s := &DependenciesAfterInstallStage{} | ||
s.DependenciesStage = newDependenciesStage(imports, DependenciesAfterInstall, baseStageOptions) | ||
return s | ||
} | ||
|
||
type DependenciesAfterInstallStage struct { | ||
*DependenciesStage | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package stage | ||
|
||
import "github.com/werf/werf/pkg/config" | ||
|
||
func GenerateDependenciesAfterSetupStage(imageBaseConfig *config.StapelImageBase, baseStageOptions *NewBaseStageOptions) *DependenciesAfterSetupStage { | ||
imports := getImports(imageBaseConfig, &getImportsOptions{After: Setup}) | ||
if len(imports) != 0 { | ||
return newDependenciesAfterSetupStage(imports, baseStageOptions) | ||
} | ||
|
||
return nil | ||
} | ||
|
||
func newDependenciesAfterSetupStage(imports []*config.Import, baseStageOptions *NewBaseStageOptions) *DependenciesAfterSetupStage { | ||
s := &DependenciesAfterSetupStage{} | ||
s.DependenciesStage = newDependenciesStage(imports, DependenciesAfterSetup, baseStageOptions) | ||
return s | ||
} | ||
|
||
type DependenciesAfterSetupStage struct { | ||
*DependenciesStage | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package stage | ||
|
||
import "github.com/werf/werf/pkg/config" | ||
|
||
func GenerateDependenciesBeforeInstallStage(imageBaseConfig *config.StapelImageBase, baseStageOptions *NewBaseStageOptions) *DependenciesBeforeInstallStage { | ||
imports := getImports(imageBaseConfig, &getImportsOptions{Before: Install}) | ||
if len(imports) != 0 { | ||
return newDependenciesBeforeInstallStage(imports, baseStageOptions) | ||
} | ||
|
||
return nil | ||
} | ||
|
||
func newDependenciesBeforeInstallStage(imports []*config.Import, baseStageOptions *NewBaseStageOptions) *DependenciesBeforeInstallStage { | ||
s := &DependenciesBeforeInstallStage{} | ||
s.DependenciesStage = newDependenciesStage(imports, DependenciesBeforeInstall, baseStageOptions) | ||
return s | ||
} | ||
|
||
type DependenciesBeforeInstallStage struct { | ||
*DependenciesStage | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package stage | ||
|
||
import "github.com/werf/werf/pkg/config" | ||
|
||
func GenerateDependenciesBeforeSetupStage(imageBaseConfig *config.StapelImageBase, baseStageOptions *NewBaseStageOptions) *DependenciesBeforeSetupStage { | ||
imports := getImports(imageBaseConfig, &getImportsOptions{Before: Setup}) | ||
if len(imports) != 0 { | ||
return newDependenciesBeforeSetupStage(imports, baseStageOptions) | ||
} | ||
|
||
return nil | ||
} | ||
|
||
func newDependenciesBeforeSetupStage(imports []*config.Import, baseStageOptions *NewBaseStageOptions) *DependenciesBeforeSetupStage { | ||
s := &DependenciesBeforeSetupStage{} | ||
s.DependenciesStage = newDependenciesStage(imports, DependenciesBeforeSetup, baseStageOptions) | ||
return s | ||
} | ||
|
||
type DependenciesBeforeSetupStage struct { | ||
*DependenciesStage | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.