Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions internal/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion internal/cmd/root_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
)
Expand Down
2 changes: 0 additions & 2 deletions script/completions
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading