DockerCLI/vendor
CrazyMax e14f5fc1a7
revert "improve plugins discovery performance"
This reverts commit 62f2358b99.

Spawning a goroutine for each iteration in the loop when listing
plugins is racy unfortunately. `plugins` slice is protected with
a mutex so not sure why it fails.

I tried using a channel to collect the plugins instead of a slice
to guarantee that they will be appended to the list in the order
they are processed but no dice.

I also tried without errgroup package and simply use sync.WaitGroup
but same. I have also created an extra channel to receive errors
from the goroutines but racy too.

I think the change in this function is not related to the race
condition but newPlugin is. So revert in the meantime :(

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2023-03-31 16:20:42 +02:00
..
github.com vendor: github.com/docker/docker master (v24.0.0-dev) 2023-03-30 19:56:28 +02:00
go.etcd.io/etcd/raft/v3 vendor: github.com/docker/swarmkit 616e8db4c3b0 2022-03-16 15:39:52 +01:00
golang.org/x revert "improve plugins discovery performance" 2023-03-31 16:20:42 +02:00
google.golang.org vendor: google.golang.org/grpc v1.50.1 2023-03-15 01:42:09 +01:00
gopkg.in/yaml.v2 vendor dependencies with go1.17 2022-03-26 19:48:14 +01:00
gotest.tools/v3 vendor: gotest.tools/v3 v3.4.0 2022-11-05 23:25:29 +01:00
modules.txt revert "improve plugins discovery performance" 2023-03-31 16:20:42 +02:00