superfly / flyctl

Shadowing a builtin CRT-A0001
Bug risk
Major
a month ago4 years old
shadowing of predeclared identifier: bool
180		fmt.Fprintln(io.ErrOut)
181	}
182
183	if bool, err := cmd.Flags().GetBool(flagnames.Debug); err == nil && bool {184		fmt.Fprintf(io.ErrOut, "Stacktrace:\n%s\n", debug.Stack())
185	}
186}
shadowing of predeclared identifier: print
645	return []*appconfig.Compute{guestToCompute(guest)}, reason, nil
646}
647
648func planValidateHighAvailability(ctx context.Context, p *plan.LaunchPlan, org *fly.Organization, print bool) bool {649	if !org.Billable && p.HighAvailability {
650		if print {
651			fmt.Fprintln(iostreams.FromContext(ctx).ErrOut, "Warning: This organization has no payment method, turning off high availability")
shadowing of predeclared identifier: close
 72	return server.Run(ctx, opt)
 73}
 74
 75func setupLogger(path string) (logger *log.Logger, close func(), err error) { 76	var out io.Writer
 77	if path != "" {
 78		f, err := os.OpenFile(path, os.O_WRONLY|os.O_APPEND, 0o600)
shadowing of predeclared identifier: new
 72			})),
 73}
 74
 75func configCompare(ctx context.Context, original fly.MachineConfig, new fly.MachineConfig) string { 76	io := iostreams.FromContext(ctx)
 77	colorize := io.ColorScheme()
 78