You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
result.Should().HaveStderrMatch($"*Error {NotRestoredErrorCode}: The artifact with reference \"br:mcr.microsoft.com/bicep/fake/avm/res/app/container-app:0.2.0\" has not been restored.*");
154
133
result.Should().HaveStderrMatch("*Warning use-recent-module-versions: Available module versions have not yet been downloaded. If running from the command line, be sure --no-restore is not specified.*");
155
134
result.Should().HaveStdout("");
156
135
result.Should().Fail();
136
+
137
+
moduleIndexClientMock.Verify(client =>client.GetModuleIndexAsync(),Times.Never,"shouldn't try to download metadata --no-restore is set");
// We call this here because we don't want to run this code at all if we're running from the command line and --no-restore has been specified.
222
-
// So, if we're restoring artifacts, it's safe to also query for public module metadata
223
-
//asdfg use global options instead?
224
-
awaitpublicRegistryModuleMetadataProvider.TryAwaitCache(forceRestore);//asdfg why are we waiting for the cache? asdfg should we be using the indexer instead?
221
+
// We don't want linter tests to download anything during analysis. So we are downloading
222
+
// metadata here to avoid downloading during analysis, and tests can use cached data if it
0 commit comments