Skip to content

Commit

Permalink
Fix restore bug in cake
Browse files Browse the repository at this point in the history
Signed-off-by: Alireza Poodineh <itsaeliux@gmail.com>
  • Loading branch information
Aeliux committed Oct 9, 2024
1 parent 5570d38 commit 23a93ca
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ Setup(context => {

Task("Restore-Engine")
.Description("Restore kryptor engine dependencies")
.WithCriteria(!noRestore)
.WithCriteria(!noRestore && !noBuild)
.Does(() => {
DotNetRestore(engineProjectFile, GlobalRestoreSettings);
});
Expand All @@ -131,7 +131,7 @@ Task("Pack-Engine")
Task("Restore-Client")
.Description("Restore kryptor client utilities dependencies")
.IsDependentOn("Restore-Engine")
.WithCriteria(!noRestore)
.WithCriteria(!noRestore && !noBuild)
.Does(() => {
DotNetRestore(clientProjectFile, GlobalRestoreSettings);
});
Expand All @@ -154,7 +154,7 @@ Task("Pack-Client")
Task("Restore-Cli")
.Description("Restore kryptor command line interface dependencies")
.IsDependentOn("Restore-Client")
.WithCriteria(!noRestore)
.WithCriteria(!noRestore && !noBuild)
.Does(() => {
DotNetRestore(cliProjectFile, GlobalRestoreSettings);
});
Expand Down Expand Up @@ -197,7 +197,7 @@ Task("Publish-Cli.bundle")
Task("Restore-Cli.Aot")
.Description("Restore kryptor cli native AOT dependencies")
.IsDependentOn("Restore-Client")
.WithCriteria(!noRestore)
.WithCriteria(!noRestore && !noBuild)
.Does(() => {
var restoreSettings = GlobalRestoreSettings;

Expand Down Expand Up @@ -236,7 +236,7 @@ Task("Publish-Cli.Aot")
Task("Restore-Engine.Test")
.Description("Restore kryptor engine test dependencies")
.IsDependentOn("Restore-Engine")
.WithCriteria(!noRestore)
.WithCriteria(!noRestore && !noBuild)
.Does(() => {
DotNetRestore(engineTestProjectFile, GlobalRestoreSettings);
});
Expand Down

0 comments on commit 23a93ca

Please sign in to comment.