DockerCLI/cli-plugins
Bjorn Neergaard 509123f935
plugin: drop explicit unlink
Go's `net` package [will unlink][1] for us, as long as we used Listen &
friends to create the Unix socket.

Go will even skip the unlink when the socket appears to be abstract
(starts with a NUL, represented by an @), though we must be cautious to
only create sockets with an abstract address on platforms that actually
support it -- this caused [several][2] [bugs][3] before.

  [1]: https://pkg.go.dev/net#UnixListener.SetUnlinkOnClose
  [2]: https://github.com/docker/cli/pull/4783
  [3]: https://github.com/docker/cli/pull/4863

Signed-off-by: Bjorn Neergaard <bjorn.neergaard@docker.com>
2024-03-22 10:12:40 -06:00
..
examples/helloworld cli-plugins: helloworld: rename var that collided with import 2024-01-11 22:25:15 +01:00
manager plugins: fix encoding for OTEL env var passed to plugin 2024-02-28 12:43:07 -08:00
plugin cli-plugins: move socket code into common package 2024-01-12 11:49:25 -07:00
socket plugin: drop explicit unlink 2024-03-22 10:12:40 -06:00