Sebastiaan van Stijn
5bbf3af980
daemon: fix linting S1016 (staticcheck) false positive
...
Staticcheck is suggesting to cast the type or to directly copy, but
doesn't account for nat.SortPortMap mutating the second argument, so
mutating the HostConfig.PortBindings. From the code, it looks like the
intent here was to prevent that (creating a deep copy), so let's keep
that.
daemon/container_operations.go:109:39: S1016: should convert bb (type github.com/docker/docker/vendor/github.com/docker/go-connections/nat.PortBinding) to github.com/docker/docker/vendor/github.com/moby/moby/api/types/container.PortBinding instead of using struct literal (staticcheck)
bindings[p] = append(bindings[p], containertypes.PortBinding{
^
daemon/network.go:952:39: S1016: should convert bb (type github.com/docker/docker/vendor/github.com/docker/go-connections/nat.PortBinding) to github.com/docker/docker/vendor/github.com/moby/moby/api/types/container.PortBinding instead of using struct literal (staticcheck)
bindings[p] = append(bindings[p], containertypes.PortBinding{
^
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2025-07-31 02:57:39 +02:00
..
2025-07-31 02:57:39 +02:00
2025-07-31 02:57:39 +02:00
2025-07-28 22:04:39 +02:00
2025-07-28 22:04:39 +02:00
2025-07-31 02:57:39 +02:00
2025-07-31 02:57:39 +02:00
2025-07-24 12:12:38 -07:00
2025-07-29 11:48:57 +02:00
2025-07-30 14:22:31 +02:00
2025-05-30 15:59:13 +02:00
2025-07-31 02:57:39 +02:00
2025-07-28 22:04:39 +02:00
2025-07-31 02:57:39 +02:00
2025-07-02 11:47:02 +02:00
2025-07-28 23:05:19 -07:00
2025-07-24 12:12:38 -07:00
2025-07-31 02:57:39 +02:00
2025-07-30 14:22:31 +02:00
2025-07-30 14:22:31 +02:00
2025-04-08 17:35:05 -07:00
2025-07-21 09:30:05 -07:00
2025-04-07 16:19:02 +02:00
2025-07-25 13:39:32 +02:00
2025-05-30 15:59:13 +02:00
2025-07-22 18:48:39 +02:00
2025-07-13 16:37:36 +02:00
2025-07-13 16:37:36 +02:00
2025-07-24 12:35:25 +02:00
2025-07-24 12:35:25 +02:00
2025-07-24 12:35:25 +02:00
2025-07-30 14:22:30 +02:00
2025-07-29 10:26:12 +02:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-06-27 14:25:45 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-28 00:03:04 +02:00
2025-07-21 09:30:05 -07:00
2025-06-27 14:27:21 -07:00
2025-07-21 09:30:05 -07:00
2025-07-25 13:39:32 +02:00
2025-07-29 11:48:57 +02:00
2025-07-31 02:57:39 +02:00
2025-07-31 02:57:39 +02:00
2025-06-27 14:27:21 -07:00
2025-07-31 02:57:39 +02:00
2025-07-29 11:16:25 +02:00
2025-07-29 11:16:25 +02:00
2025-04-22 11:31:10 +02:00
2025-07-24 12:12:07 -07:00
2025-07-21 09:30:05 -07:00
2025-07-28 11:46:19 +02:00
2025-07-21 09:30:05 -07:00
2025-07-14 09:25:23 -07:00
2025-07-31 02:57:39 +02:00
2025-07-21 09:30:05 -07:00
2025-07-28 11:46:19 +02:00
2025-05-30 15:59:13 +02:00
2025-05-30 15:59:13 +02:00
2025-07-29 11:48:57 +02:00
2025-07-29 11:17:32 +02:00
2025-07-28 18:39:22 +02:00
2025-05-30 15:59:13 +02:00
2025-07-28 18:39:22 +02:00
2025-07-28 00:03:04 +02:00
2025-07-28 00:03:04 +02:00
2025-05-30 15:59:13 +02:00
2025-06-05 14:44:18 +00:00
2025-06-05 14:44:18 +00:00
2025-07-21 09:30:05 -07:00
2025-07-28 00:03:04 +02:00
2023-08-23 15:47:43 +02:00
2025-05-30 15:59:13 +02:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-24 12:11:19 -07:00
2025-06-27 14:27:21 -07:00
2025-07-28 00:03:04 +02:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-28 00:03:04 +02:00
2025-05-30 15:59:13 +02:00
2025-07-24 12:11:51 -07:00
2025-05-30 15:59:13 +02:00
2025-07-28 00:03:04 +02:00
2025-05-30 15:59:13 +02:00
2025-07-28 22:04:39 +02:00
2025-07-21 09:30:05 -07:00
2025-07-24 12:14:46 -07:00
2025-07-28 00:03:04 +02:00
2025-07-21 09:30:05 -07:00
2025-07-28 00:03:04 +02:00
2025-07-31 02:57:39 +02:00
2025-05-30 15:59:13 +02:00
2025-05-30 15:59:13 +02:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-06-27 14:27:21 -07:00
2025-07-24 12:11:02 -07:00
2025-06-27 14:27:21 -07:00
2025-06-27 14:27:21 -07:00
2025-07-31 02:57:39 +02:00
2025-05-30 15:59:13 +02:00
2025-05-30 15:59:13 +02:00
2025-07-21 09:30:05 -07:00
2025-07-28 00:03:04 +02:00
2025-07-24 12:11:02 -07:00
2025-07-28 00:03:04 +02:00
2025-07-28 00:03:04 +02:00
2025-07-21 09:30:05 -07:00
2025-07-25 13:39:32 +02:00
2025-07-14 09:25:23 -07:00
2025-07-31 02:57:39 +02:00
2025-07-21 09:30:05 -07:00
2025-07-24 12:15:02 -07:00
2025-06-27 14:27:21 -07:00
2025-06-27 14:27:21 -07:00
2025-07-21 09:30:05 -07:00
2025-07-28 00:03:04 +02:00
2025-07-21 09:30:05 -07:00
2025-07-28 00:03:04 +02:00
2025-07-24 12:11:51 -07:00
2025-05-30 15:59:13 +02:00
2025-05-30 15:59:13 +02:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-06-27 14:28:56 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-06-27 14:28:24 -07:00
2023-06-01 14:45:25 -04:00
2025-07-24 12:11:19 -07:00
2025-07-22 18:48:39 +02:00
2025-06-27 14:27:21 -07:00
2025-07-21 09:30:05 -07:00
2025-07-24 12:11:19 -07:00
2025-06-27 14:28:56 -07:00
2025-06-27 14:27:21 -07:00
2025-07-12 19:16:30 +02:00
2025-07-28 00:03:04 +02:00
2025-05-30 15:59:13 +02:00
2025-05-16 10:23:49 -04:00
2025-07-21 09:30:05 -07:00
2025-07-24 12:14:46 -07:00
2025-07-28 00:03:04 +02:00
2025-07-21 09:30:05 -07:00
2025-05-30 15:59:13 +02:00
2025-07-24 12:12:38 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-15 10:44:44 -07:00
2025-07-24 12:12:54 -07:00
2025-07-24 12:12:54 -07:00
2025-07-28 00:03:04 +02:00
2025-07-28 13:57:10 +02:00
2025-05-30 15:59:13 +02:00