diff --git a/internal/cmd/root.go b/internal/cmd/root.go index 1ef968d1..eb428a71 100644 --- a/internal/cmd/root.go +++ b/internal/cmd/root.go @@ -108,12 +108,6 @@ func Execute(ctx context.Context, sigc chan os.Signal, signals []os.Signal, ver, var format printer.Format var debug bool - if _, ok := os.LookupEnv("PSCALE_DISABLE_DEV_WARNING"); !ok { - if commit == "" || ver == "" || buildDate == "" { - fmt.Fprintf(os.Stderr, "!! WARNING: You are using a self-compiled binary which is not officially supported.\n!! To dismiss this warning, set PSCALE_DISABLE_DEV_WARNING=true\n\n") - } - } - if update.Enabled() { updateCheckRes := make(chan *update.UpdateInfo, 1) updateCheckErr := make(chan error, 1) diff --git a/internal/cmd/root_test.go b/internal/cmd/root_test.go index 9d9c59ca..8865423d 100644 --- a/internal/cmd/root_test.go +++ b/internal/cmd/root_test.go @@ -222,7 +222,6 @@ func runRootCLIWithHome(t *testing.T, home string, args ...string) rootCLIResult command := exec.Command(os.Args[0], testArgs...) command.Env = append(os.Environ(), rootCLIHelperEnv+"=1", - "PSCALE_DISABLE_DEV_WARNING=true", "PSCALE_NO_UPDATE_NOTIFIER=1", "XDG_CONFIG_HOME="+t.TempDir(), ) diff --git a/script/completions b/script/completions index afa502f1..e1e896e3 100755 --- a/script/completions +++ b/script/completions @@ -5,8 +5,6 @@ set -e rm -rf completions mkdir -p completions -PSCALE_DISABLE_DEV_WARNING=true - for sh in bash zsh fish; do go run cmd/pscale/main.go completion "$sh" >"completions/pscale.$sh" done