diff --git a/main.go b/main.go index 2e85db545a..37757133e2 100644 --- a/main.go +++ b/main.go @@ -1,16 +1,18 @@ -// Copyright 2018 Google LLC All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +/* +Copyright 2020 Google LLC All Rights Reserved. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ package main diff --git a/pkg/build/gobuild_test.go b/pkg/build/gobuild_test.go index fd04bd455d..5c5a0131ca 100644 --- a/pkg/build/gobuild_test.go +++ b/pkg/build/gobuild_test.go @@ -92,8 +92,8 @@ func TestGoBuildIsSupportedRefWithModules(t *testing.T) { withModuleInfo(mods), withBuildContext(stubBuildContext{ // make all referenced deps commands - "github.com/google/ko/test": &gb.Package{Name: "main"}, - "github.com/some/module/cmd": &gb.Package{Name: "main"}, + "github.com/google/ko/test": &gb.Package{Name: "main"}, + "github.com/some/module/cmd": &gb.Package{Name: "main"}, "github.com/google/ko/pkg/build": &gb.Package{Name: "build"}, }), @@ -106,8 +106,8 @@ func TestGoBuildIsSupportedRefWithModules(t *testing.T) { // Supported import paths. for _, importpath := range []string{ - "ko://github.com/google/ko/test", // ko can build the test package. - "ko://github.com/some/module/cmd", // ko can build commands in dependent modules + "ko://github.com/google/ko/test", // ko can build the test package. + "ko://github.com/some/module/cmd", // ko can build commands in dependent modules } { t.Run(importpath, func(t *testing.T) { if err := ng.IsSupportedReference(importpath); err != nil { @@ -120,7 +120,7 @@ func TestGoBuildIsSupportedRefWithModules(t *testing.T) { for _, importpath := range []string{ "ko://github.com/google/ko/pkg/build", // not a command. "ko://github.com/google/ko/pkg/nonexistent", // does not exist. - "ko://github.com/google/ko", // not in this module. + "ko://github.com/google/ko", // not in this module. } { t.Run(importpath, func(t *testing.T) { if err := ng.IsSupportedReference(importpath); err == nil {