diff --git a/.github/workflows/kind-e2e.yaml b/.github/workflows/kind-e2e.yaml index f95ccb8c9d..5429b1c026 100644 --- a/.github/workflows/kind-e2e.yaml +++ b/.github/workflows/kind-e2e.yaml @@ -131,7 +131,7 @@ jobs: - name: Run Smoke Test run: | # Test with kind load - KO_DOCKER_REPO=kind.local ko apply --platform=all -f ./cmd/ko/test + KO_DOCKER_REPO=kind.local ko apply --platform=all -f ./test kubectl wait --timeout=10s --for=condition=Ready pod/kodata kubectl delete pod kodata diff --git a/cmd/ko/main.go b/cmd/ko/main.go index 2e85db545a..07c6bfd5d9 100644 --- a/cmd/ko/main.go +++ b/cmd/ko/main.go @@ -14,6 +14,10 @@ package main +// HEY! YOU! This file has moved to the root of the project. +// !! PLEASE DO NOT ADD NEW FEATURES HERE !! +// Only sync with the root/main.go. + import ( "log" "os" @@ -25,6 +29,15 @@ import ( "github.com/spf13/cobra" ) +const Deprecation258 = `NOTICE! +----------------------------------------------------------------- +Please install ko from github.com/google/ko. + +For more information see: + https://github.com/google/ko/issues/258 +----------------------------------------------------------------- +` + func main() { logs.Warn.SetOutput(os.Stderr) logs.Progress.SetOutput(os.Stderr) @@ -43,6 +56,8 @@ func main() { // registry. cmds.AddCommand(cranecmd.NewCmdAuth()) + log.Printf(Deprecation258) + if err := cmds.Execute(); err != nil { log.Fatalf("error during command execution: %v", err) } diff --git a/hack/update-deps.sh b/hack/update-deps.sh index 0fb575da8e..cb928175c7 100755 --- a/hack/update-deps.sh +++ b/hack/update-deps.sh @@ -30,7 +30,3 @@ go mod vendor # From https://stackoverflow.com/questions/22097130/delete-all-broken-symbolic-links-with-a-line find vendor/ -type l -exec sh -c 'for x; do [ -e "$x" ] || rm "$x"; done' _ {} + - -# HACK HACK HACK: -# Until we can cleanly remove it, copy root main.go and move it to ./cmd/ko -cp ${PROJECT_ROOT}/main.go ${PROJECT_ROOT}/cmd/ko/