DockerCLI/cli-plugins
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
..
examples/helloworld Always enable experimental features 2020-10-02 15:59:42 +02:00
manager revert "improve plugins discovery performance" 2023-03-31 16:20:42 +02:00
plugin cli: pass dockerCLI's in/out/err to cobra cmds 2023-01-15 13:44:33 +01:00