Skip to content

Commit

Permalink
Fix force_build always tries to build provided image
Browse files Browse the repository at this point in the history
  • Loading branch information
keimoon committed Jun 25, 2018
1 parent 0f53eb4 commit 6872c1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion buildtree/buildtree.go
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ func (t *BuildTree) isProvided(node *buildNode) bool {
}

func (t *BuildTree) needBuild(node *buildNode) bool {
return node.dirty || node.forceBuild
return !t.isProvided(node) && (node.dirty || node.forceBuild)
}

func (t *BuildTree) buildNodeAndChildren(node *buildNode) error {
Expand Down
2 changes: 1 addition & 1 deletion utils/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

// Version returns doriath version
func Version() string {
return "1.4.2"
return "1.4.3"
}

// ResolveDir appends a path to a rootDir
Expand Down

0 comments on commit 6872c1c

Please sign in to comment.