DockerCLI/vendor/golang.org/x
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
..
crypto vendor: golang.org/x/crypto v0.1.0 (fix OpenSSL > 9.3 compatibility) 2022-11-16 16:05:32 +01:00
net vendor: golang.org/x/net v0.7.0 2023-03-15 01:42:00 +01:00
sys vendor: golang.org/x/sys v0.6.0 2023-03-30 19:56:27 +02:00
term vendor: golang.org/x/term v0.3.0 2022-12-22 22:59:45 +01:00
text vendor: golang.org/x/text v0.5.0 2022-12-22 22:53:24 +01:00
time vendor: golang.org/x/time v0.3.0 2023-03-15 01:35:57 +01:00