Skip to content

Commit

Permalink
Fix rerunning reggae
Browse files Browse the repository at this point in the history
  • Loading branch information
atilaneves committed Aug 15, 2023
1 parent 435516e commit 051e7d1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions payload/reggae/options.d
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,14 @@ struct Options {

string[] reggaeFileDependencies() @safe const {
import std.file: exists;
auto maybeReggaeFile = reggaeFilePath.exists
const hasReggaeFile = reggaeFilePath.exists;
auto maybeReggaeFile = hasReggaeFile
? [reggaeFilePath]
: [];
return ranFromPath ~ maybeReggaeFile ~ getReggaeFileDependenciesDlang ~ dependencies;
auto maybeReggaeFileDeps = hasReggaeFile
? getReggaeFileDependenciesDlang
: [];
return ranFromPath ~ maybeReggaeFile ~ maybeReggaeFileDeps ~ dependencies;
}

bool isJsonBuild() @safe const {
Expand Down

0 comments on commit 051e7d1

Please sign in to comment.