Skip to content

Commit

Permalink
Merge pull request #608 from garden-io/source-sync-issue
Browse files Browse the repository at this point in the history
fix(build): always sync sources when building
  • Loading branch information
thsig authored Mar 8, 2019
2 parents a94de26 + 874e23c commit 85c1026
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions garden-service/src/tasks/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,14 @@ export class BuildTask extends BaseTask {
async process(): Promise<BuildResult> {
const module = this.module

const log = this.log.info({
section: this.getName(),
msg: `Syncing sources...`,
status: "active",
})

await this.garden.buildDir.syncFromSrc(this.module)

if (!this.force) {
const status = await this.garden.actions.getBuildStatus({ log: this.log, module })

Expand All @@ -76,11 +84,7 @@ export class BuildTask extends BaseTask {
}
}

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

let result: BuildResult
try {
Expand Down

0 comments on commit 85c1026

Please sign in to comment.