Skip to content

Commit

Permalink
Add checking of output for previous step in a block of steps (#7)
Browse files Browse the repository at this point in the history
* Fixes #6 issue: add checking of output for previous steps

* Bump version
  • Loading branch information
Ilya Buzlov authored Sep 18, 2020
1 parent c52c07b commit 3c9980d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/effe/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
)

const (
version = "0.1.0"
version = "0.1.2"
)

func main() {
Expand Down
3 changes: 3 additions & 0 deletions strategies/blockcontext.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ func (b *BlockContext) CalculateInput(calls []ComponentCall) {
for _, inputField := range c.Input().List {
var foundSourceOfArg bool
for _, previous := range calls[:index] {
if previous.Output() == nil {
break
}
foundSourceOfArg = fields.FindFieldWithType(previous.Output().List, inputField.Type) != nil
if foundSourceOfArg {
break
Expand Down

0 comments on commit 3c9980d

Please sign in to comment.