Skip to content

Commit

Permalink
fix(macro): regression introduced by adding the chdir flag
Browse files Browse the repository at this point in the history
  • Loading branch information
srevinsaju committed Sep 19, 2023
1 parent a924492 commit 1f61d8d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/ci/stage_run.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func (s *Stage) expandMacros(ctx context.Context) (*Stage, hcl.Diagnostics) {
}

Check warning on line 132 in pkg/ci/stage_run.go

View check run for this annotation

Codecov / codecov/patch

pkg/ci/stage_run.go#L131-L132

Added lines #L131 - L132 were not covered by tests
chdir := true
if chdirRaw.IsNull() {
chdir = true
chdir = false
} else if chdirRaw.Type() == cty.Bool {
chdir = chdirRaw.True()
}

Check warning on line 138 in pkg/ci/stage_run.go

View check run for this annotation

Codecov / codecov/patch

pkg/ci/stage_run.go#L137-L138

Added lines #L137 - L138 were not covered by tests
Expand Down
2 changes: 1 addition & 1 deletion pkg/ci/stage_schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ type StageUse struct {
Macro hcl.Expression `hcl:"macro" json:"macro"`
Parameters hcl.Expression `hcl:"parameters,optional" json:"parameters"`

Chdir hcl.Expression `hcl:"Chdir,optional" json:"chdir"`
Chdir hcl.Expression `hcl:"chdir,optional" json:"chdir"`
}

// StageDaemon configures the daemon properties and lifecycle of a daemon
Expand Down

0 comments on commit 1f61d8d

Please sign in to comment.