diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9795359 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +coverage.out +yakmv diff --git a/coverage.out b/coverage.out deleted file mode 100644 index b58a011..0000000 --- a/coverage.out +++ /dev/null @@ -1,107 +0,0 @@ -mode: atomic -github.com/doodlescheduling/yakmv/main.go:72.13,90.2 16 1 -github.com/doodlescheduling/yakmv/main.go:92.13,138.20 26 5 -github.com/doodlescheduling/yakmv/main.go:138.20,141.3 2 5 -github.com/doodlescheduling/yakmv/main.go:143.2,144.12 2 5 -github.com/doodlescheduling/yakmv/main.go:144.12,148.3 3 5 -github.com/doodlescheduling/yakmv/main.go:150.2,155.26 1 5 -github.com/doodlescheduling/yakmv/main.go:155.26,158.3 2 23 -github.com/doodlescheduling/yakmv/main.go:159.2,170.6 9 5 -github.com/doodlescheduling/yakmv/main.go:170.6,172.17 2 53 -github.com/doodlescheduling/yakmv/main.go:172.17,173.21 1 5 -github.com/doodlescheduling/yakmv/main.go:173.21,174.10 1 5 -github.com/doodlescheduling/yakmv/main.go:177.4,177.13 1 0 -github.com/doodlescheduling/yakmv/main.go:180.3,186.49 3 48 -github.com/doodlescheduling/yakmv/main.go:186.49,187.12 1 0 -github.com/doodlescheduling/yakmv/main.go:188.9,188.41 1 48 -github.com/doodlescheduling/yakmv/main.go:188.41,189.12 1 0 -github.com/doodlescheduling/yakmv/main.go:192.3,192.31 1 48 -github.com/doodlescheduling/yakmv/main.go:192.31,194.4 1 23 -github.com/doodlescheduling/yakmv/main.go:196.3,196.108 1 48 -github.com/doodlescheduling/yakmv/main.go:196.108,198.4 1 1 -github.com/doodlescheduling/yakmv/main.go:200.3,200.19 1 48 -github.com/doodlescheduling/yakmv/main.go:201.35,202.29 1 13 -github.com/doodlescheduling/yakmv/main.go:203.20,204.36 1 3 -github.com/doodlescheduling/yakmv/main.go:205.11,206.35 1 32 -github.com/doodlescheduling/yakmv/main.go:210.2,210.42 1 5 -github.com/doodlescheduling/yakmv/main.go:210.42,214.3 3 30 -github.com/doodlescheduling/yakmv/main.go:216.2,219.18 3 5 -github.com/doodlescheduling/yakmv/main.go:219.18,221.3 1 0 -github.com/doodlescheduling/yakmv/main.go:221.8,223.3 1 5 -github.com/doodlescheduling/yakmv/main.go:225.2,225.44 1 5 -github.com/doodlescheduling/yakmv/main.go:225.44,226.44 1 1 -github.com/doodlescheduling/yakmv/main.go:230.127,234.30 3 5 -github.com/doodlescheduling/yakmv/main.go:234.30,235.20 1 15 -github.com/doodlescheduling/yakmv/main.go:235.20,236.12 1 5 -github.com/doodlescheduling/yakmv/main.go:239.3,243.17 4 10 -github.com/doodlescheduling/yakmv/main.go:246.2,246.19 1 5 -github.com/doodlescheduling/yakmv/main.go:249.81,252.6 2 10 -github.com/doodlescheduling/yakmv/main.go:252.6,253.10 1 49 -github.com/doodlescheduling/yakmv/main.go:254.21,255.19 1 0 -github.com/doodlescheduling/yakmv/main.go:256.25,258.18 2 49 -github.com/doodlescheduling/yakmv/main.go:258.18,260.5 1 5 -github.com/doodlescheduling/yakmv/main.go:262.4,262.37 1 49 -github.com/doodlescheduling/yakmv/main.go:262.37,264.5 1 0 -github.com/doodlescheduling/yakmv/main.go:266.4,266.26 1 49 -github.com/doodlescheduling/yakmv/main.go:266.26,268.5 1 10 -github.com/doodlescheduling/yakmv/main.go:269.4,269.9 1 39 -github.com/doodlescheduling/yakmv/main.go:280.36,283.2 2 10 -github.com/doodlescheduling/yakmv/main.go:285.35,287.2 1 5 -github.com/doodlescheduling/yakmv/main.go:291.49,293.24 2 5 -github.com/doodlescheduling/yakmv/main.go:293.24,295.3 1 4 -github.com/doodlescheduling/yakmv/main.go:297.2,297.16 1 5 -github.com/doodlescheduling/yakmv/main.go:300.131,301.28 1 10 -github.com/doodlescheduling/yakmv/main.go:301.28,303.13 2 49 -github.com/doodlescheduling/yakmv/main.go:303.13,316.18 5 49 -github.com/doodlescheduling/yakmv/main.go:316.18,317.37 1 5 -github.com/doodlescheduling/yakmv/main.go:317.37,319.6 1 0 -github.com/doodlescheduling/yakmv/main.go:321.5,323.21 2 5 -github.com/doodlescheduling/yakmv/main.go:323.21,325.6 1 0 -github.com/doodlescheduling/yakmv/main.go:326.10,326.35 1 44 -github.com/doodlescheduling/yakmv/main.go:326.35,329.21 2 44 -github.com/doodlescheduling/yakmv/main.go:329.21,331.6 1 0 -github.com/doodlescheduling/yakmv/main.go:337.41,342.16 4 5 -github.com/doodlescheduling/yakmv/main.go:342.16,344.3 1 0 -github.com/doodlescheduling/yakmv/main.go:346.2,347.16 2 5 -github.com/doodlescheduling/yakmv/main.go:347.16,349.3 1 0 -github.com/doodlescheduling/yakmv/main.go:351.2,351.36 1 5 -github.com/doodlescheduling/yakmv/main.go:354.22,355.16 1 60 -github.com/doodlescheduling/yakmv/main.go:355.16,356.13 1 0 -github.com/doodlescheduling/yakmv/main.go:360.112,365.16 2 20 -github.com/doodlescheduling/yakmv/main.go:365.16,367.3 1 0 -github.com/doodlescheduling/yakmv/main.go:369.2,369.39 1 20 -github.com/doodlescheduling/yakmv/main.go:369.39,370.45 1 1786 -github.com/doodlescheduling/yakmv/main.go:370.45,372.4 1 11 -github.com/doodlescheduling/yakmv/main.go:375.2,375.50 1 9 -github.com/doodlescheduling/yakmv/main.go:378.94,381.16 2 20 -github.com/doodlescheduling/yakmv/main.go:381.16,384.17 3 11 -github.com/doodlescheduling/yakmv/main.go:384.17,386.4 1 0 -github.com/doodlescheduling/yakmv/main.go:389.2,389.12 1 20 -github.com/doodlescheduling/yakmv/main.go:392.101,394.16 2 5 -github.com/doodlescheduling/yakmv/main.go:394.16,396.3 1 0 -github.com/doodlescheduling/yakmv/main.go:398.2,414.16 3 5 -github.com/doodlescheduling/yakmv/main.go:414.16,416.3 1 0 -github.com/doodlescheduling/yakmv/main.go:418.2,419.16 2 5 -github.com/doodlescheduling/yakmv/main.go:419.16,421.3 1 0 -github.com/doodlescheduling/yakmv/main.go:423.2,424.16 2 5 -github.com/doodlescheduling/yakmv/main.go:424.16,426.3 1 0 -github.com/doodlescheduling/yakmv/main.go:428.2,428.19 1 5 -github.com/doodlescheduling/yakmv/main.go:431.146,433.16 2 5 -github.com/doodlescheduling/yakmv/main.go:433.16,435.3 1 0 -github.com/doodlescheduling/yakmv/main.go:437.2,438.16 2 5 -github.com/doodlescheduling/yakmv/main.go:438.16,440.3 1 0 -github.com/doodlescheduling/yakmv/main.go:442.2,443.16 2 5 -github.com/doodlescheduling/yakmv/main.go:443.16,445.3 1 0 -github.com/doodlescheduling/yakmv/main.go:447.2,448.16 2 5 -github.com/doodlescheduling/yakmv/main.go:448.16,450.3 1 0 -github.com/doodlescheduling/yakmv/main.go:452.2,456.16 2 5 -github.com/doodlescheduling/yakmv/main.go:456.16,458.3 1 0 -github.com/doodlescheduling/yakmv/main.go:460.2,462.16 3 5 -github.com/doodlescheduling/yakmv/main.go:462.16,464.3 1 0 -github.com/doodlescheduling/yakmv/main.go:466.2,496.16 3 5 -github.com/doodlescheduling/yakmv/main.go:496.16,498.3 1 0 -github.com/doodlescheduling/yakmv/main.go:500.2,501.16 2 5 -github.com/doodlescheduling/yakmv/main.go:501.16,503.3 1 0 -github.com/doodlescheduling/yakmv/main.go:505.2,506.16 2 5 -github.com/doodlescheduling/yakmv/main.go:506.16,508.3 1 0 -github.com/doodlescheduling/yakmv/main.go:510.2,510.19 1 5 diff --git a/main.go b/main.go index b7740d1..4bd7393 100644 --- a/main.go +++ b/main.go @@ -106,9 +106,9 @@ func main() { dockerClient, err := dockerclient.NewClientWithOpts( dockerclient.FromEnv, - dockerclient.WithAPIVersionNegotiation(), ) must(err) + dockerClient.NegotiateAPIVersion(ctx) g := new(errgroup.Group) g.Go(func() error {