|
|
|
|
@ -67,7 +67,7 @@ func testModuleWithSnapshot(t *testing.T, name string) (*configs.Config, *config
|
|
|
|
|
// sources only this ultimately just records all of the module paths
|
|
|
|
|
// in a JSON file so that we can load them below.
|
|
|
|
|
inst := initwd.NewModuleInstaller(loader.ModulesDir(), loader, registry.NewClient(nil, nil))
|
|
|
|
|
_, instDiags := inst.InstallModules(context.Background(), dir, "tests", true, initwd.ModuleInstallHooksImpl{})
|
|
|
|
|
_, instDiags := inst.InstallModules(context.Background(), dir, "tests", true, false, initwd.ModuleInstallHooksImpl{})
|
|
|
|
|
if instDiags.HasErrors() {
|
|
|
|
|
t.Fatal(instDiags.Err())
|
|
|
|
|
}
|
|
|
|
|
@ -124,7 +124,7 @@ func testModuleInline(t *testing.T, sources map[string]string) *configs.Config {
|
|
|
|
|
// sources only this ultimately just records all of the module paths
|
|
|
|
|
// in a JSON file so that we can load them below.
|
|
|
|
|
inst := initwd.NewModuleInstaller(loader.ModulesDir(), loader, registry.NewClient(nil, nil))
|
|
|
|
|
_, instDiags := inst.InstallModules(context.Background(), cfgPath, "tests", true, initwd.ModuleInstallHooksImpl{})
|
|
|
|
|
_, instDiags := inst.InstallModules(context.Background(), cfgPath, "tests", true, false, initwd.ModuleInstallHooksImpl{})
|
|
|
|
|
if instDiags.HasErrors() {
|
|
|
|
|
t.Fatal(instDiags.Err())
|
|
|
|
|
}
|
|
|
|
|
|