Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Commit

Permalink
properly catching result when restoring
Browse files Browse the repository at this point in the history
  • Loading branch information
PalmEmanuel committed Oct 22, 2023
1 parent e45770e commit 2ec1408
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BicepNet.Core/BicepWrapper.Restore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public async Task RestoreAsync(string inputFilePath, bool forceModulesRestore =
var inputUri = PathHelper.FilePathToFileUrl(inputPath);

var bicepCompiler = new BicepCompiler(featureProviderFactory, namespaceProvider, configurationManager, bicepAnalyzer, fileResolver, moduleDispatcher);
var compilation = await bicepCompiler.CreateCompilation(inputUri, workspace);
var compilation = await bicepCompiler.CreateCompilation(inputUri, workspace, true, forceModulesRestore);

var originalModulesToRestore = compilation.SourceFileGrouping.GetModulesToRestore().ToImmutableHashSet();

Expand Down

0 comments on commit 2ec1408

Please sign in to comment.