Closed crazy-max closed 2 years ago
argh some tests don't pass
--- FAIL: TestConvertSecrets (0.00s)
--- FAIL: TestConvertSecrets/convert_colliding_default_targets (0.00s)
secrets_test.go:150: assertion failed: mount paths "/run/secrets" and "/run/secrets/sub/folder" collide. A volume mount cannot include another one (string) != mount paths "/run/secrets" and "/run/secrets/sub/folder" collide. A volume mount cannot include another one. (string)
--- FAIL: TestConvertSecrets/convert_colliding_absolute_targets (0.00s)
secrets_test.go:174: assertion failed: mount paths "/home/user" and "/home/user/sub/folder" collide. A volume mount cannot include another one (string) != mount paths "/home/user" and "/home/user/sub/folder" collide. A volume mount cannot include another one. (string)
I plan to switch from shelling out to retrieve docker cli version by using the
debug/buildinfo
module in https://github.com/docker/compose-cli/pull/2151 that will give resp time <1ms but this package is available since Go 1.18: https://github.com/crazy-max/compose-cli/commit/ec18d50cfc97fb2a3163a0f0187e6e523a272b51Also upgrading to Go 1.18 will slightly improve response time of the compose-cli itself:
cc @tonistiigi @glours @rumpl
Signed-off-by: CrazyMax crazy-max@users.noreply.github.com