superfly / flyctl

Using a deprecated function, variable, constant or field GO-W1009
Anti-pattern
Major
12 days ago2 years old
ne.Temporary has been deprecated since Go 1.18 because it shouldn't be used: Temporary errors are not well-defined. Most "temporary" errors are timeouts, and the few exceptions are surprising. Do not use this method.
172			}
173
174			switch ne, ok := err.(net.Error); {
175			case ok && ne.Temporary():176				continue
177			case errors.Is(err, net.ErrClosed):
178				err = errShutdown
machineConf.DisableMachineAutostart is deprecated: use Service.Autostart instead
768		s := &machineConf.Services[idx]
769		// Use the chance to port the deprecated field
770		if machineConf.DisableMachineAutostart != nil {
771			s.Autostart = fly.Pointer(!(*machineConf.DisableMachineAutostart))772			machineConf.DisableMachineAutostart = nil
773		}
774
machineConf.DisableMachineAutostart is deprecated: use Service.Autostart instead
767	for idx := range machineConf.Services {
768		s := &machineConf.Services[idx]
769		// Use the chance to port the deprecated field
770		if machineConf.DisableMachineAutostart != nil {771			s.Autostart = fly.Pointer(!(*machineConf.DisableMachineAutostart))
772			machineConf.DisableMachineAutostart = nil
773		}
machineConf.DisableMachineAutostart is deprecated: use Service.Autostart instead
769		// Use the chance to port the deprecated field
770		if machineConf.DisableMachineAutostart != nil {
771			s.Autostart = fly.Pointer(!(*machineConf.DisableMachineAutostart))
772			machineConf.DisableMachineAutostart = nil773		}
774
775		if flag.IsSpecified(ctx, "autostop") {
types.Info is deprecated: use [system.Info].
213
214	build.ImageBuildStart()
215	terminal.Debug("fetching docker server info")
216	serverInfo, err := func() (types.Info, error) {217		infoCtx, cancel := context.WithTimeout(ctx, 10*time.Second)
218		defer cancel()
219		return docker.Info(infoCtx)