Skip to content

Commit

Permalink
fix(build): build status log line kept spinning when --force=false
Browse files Browse the repository at this point in the history
  • Loading branch information
edvald committed Dec 6, 2019
1 parent 0fee8a2 commit 7ea5f31
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions garden-service/src/tasks/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,13 @@ export class BuildTask extends BaseTask {
}
}

if (!this.force) {
if (this.force) {
log = this.log.info({
section: this.getName(),
msg: `Building version ${module.version.versionString}...`,
status: "active",
})
} else {
log = this.log.info({
section: this.getName(),
msg: `Getting build status for ${module.version.versionString}...`,
Expand All @@ -99,13 +105,9 @@ export class BuildTask extends BaseTask {
logSuccess()
return { fresh: false }
}
}

log = this.log.info({
section: this.getName(),
msg: `Building version ${module.version.versionString}...`,
status: "active",
})
log.setState(`Building version ${module.version.versionString}...`)
}

let result: BuildResult
try {
Expand Down

0 comments on commit 7ea5f31

Please sign in to comment.