osbuild/skopeo: reverse the constructor args

Put the path (which becomes an option) first and the inputs second.
This is more in line with other stage constructors.
This commit is contained in:
Achilleas Koutsou 2023-03-17 15:48:19 +01:00
parent 069021093c
commit dfae9fbefb
2 changed files with 2 additions and 2 deletions

View file

@ -352,7 +352,7 @@ func (p *OS) serialize() osbuild.Pipeline {
pipeline.AddStage(osbuild.NewContainersStorageConfStage(containerStoreOpts))
}
skopeo := osbuild.NewSkopeoStage(images, storagePath)
skopeo := osbuild.NewSkopeoStage(storagePath, images)
pipeline.AddStage(skopeo)
}

View file

@ -12,7 +12,7 @@ type SkopeoStageOptions struct {
func (o SkopeoStageOptions) isStageOptions() {}
func NewSkopeoStage(images ContainersInput, path string) *Stage {
func NewSkopeoStage(path string, images ContainersInput) *Stage {
inputs := ContainersInputs{
"images": images,