mirror of
https://github.com/ko-build/ko.git
synced 2025-11-06 09:19:12 +02:00
Merge pull request #58 from ImJasonH/strict
Implement "strict mode" which requires `ko://` prefix for import paths
This commit is contained in:
@@ -66,14 +66,12 @@ func TestGoBuildIsSupportedRefWithModules(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatalf("random.Image() = %v", err)
|
||||
}
|
||||
|
||||
mod := &modInfo{
|
||||
Path: filepath.FromSlash("github.com/google/ko/cmd/ko/test"),
|
||||
Dir: ".",
|
||||
}
|
||||
|
||||
ng, err := NewGo(WithBaseImages(func(string) (v1.Image, error) { return base, nil }),
|
||||
withModuleInfo(mod))
|
||||
ng, err := NewGo(WithBaseImages(func(string) (v1.Image, error) { return base, nil }), withModuleInfo(mod))
|
||||
if err != nil {
|
||||
t.Fatalf("NewGo() = %v", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user