Skip to content

Commit

Permalink
Merge pull request #630 from carolynvs/import-oops
Browse files Browse the repository at this point in the history
Do not import pkg/config from pkg/mixins
  • Loading branch information
carolynvs-msft authored Sep 18, 2019
2 parents 21bb79f + 7389c40 commit f1f5217
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pkg/build/dockerfile-generater.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func (g *DockerfileGenerator) buildMixinsSection() ([]string, error) {

func (g *DockerfileGenerator) getMixinBuildInput(m string) mixin.BuildInput {
input := mixin.BuildInput{
Actions: make(map[string]config.Steps, 3),
Actions: make(map[string]interface{}, 3),
}

for _, mixinDecl := range g.Manifest.Mixins {
Expand Down
8 changes: 2 additions & 6 deletions pkg/mixin/buildInput.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
package mixin

import (
"github.com/deislabs/porter/pkg/config"
)

type BuildInput struct {
Config interface{} `yaml:"config,omitempty"`
Actions map[string]config.Steps `yaml:"actions"`
Config interface{} `yaml:"config,omitempty"`
Actions map[string]interface{} `yaml:"actions"`
}

0 comments on commit f1f5217

Please sign in to comment.