Skip to content

Commit

Permalink
add deprecation message
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Nichols committed Dec 4, 2020
1 parent 6614d58 commit 645669d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/kind-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
15 changes: 15 additions & 0 deletions cmd/ko/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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)
Expand All @@ -43,6 +56,8 @@ func main() {
// registry.
cmds.AddCommand(cranecmd.NewCmdAuth())

log.Print(Deprecation258)

if err := cmds.Execute(); err != nil {
log.Fatalf("error during command execution: %v", err)
}
Expand Down
4 changes: 0 additions & 4 deletions hack/update-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/

0 comments on commit 645669d

Please sign in to comment.