Skip to content

Commit

Permalink
Fix reusing symlinks from initial build
Browse files Browse the repository at this point in the history
  • Loading branch information
zodern committed Jan 17, 2019
1 parent ca3d391 commit 65bc2b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/isobuild/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -546,11 +546,11 @@ Previous builder: ${previousBuilder.outputPath}, this builder: ${outputPath}`
if (symlink && ! (relTo in this.usedAsFile)) {
this._ensureDirectory(files.pathDirname(relTo));
const absTo = files.pathResolve(this.buildPath, relTo);
if (this.previousCreatedSymlinks[absFrom] !== absTo) {
symlinkWithOverwrite(absFrom, absTo);
if (this.previousCreatedSymlinks[absFrom] !== relTo) {
symlinkWithOverwrite(absFrom, absTo);
}
this.usedAsFile[relTo] = false;
this.createdSymlinks[absFrom] = absTo;
this.createdSymlinks[absFrom] = relTo;
return;
}

Expand Down

0 comments on commit 65bc2b0

Please sign in to comment.