Skip to content

Commit 65fda18

Browse files
committed
bump compose-go
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent 0e7e1b9 commit 65fda18

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.20
55
require (
66
github.com/AlecAivazis/survey/v2 v2.3.6
77
github.com/buger/goterm v1.0.4
8-
github.com/compose-spec/compose-go v1.13.2
8+
github.com/compose-spec/compose-go v1.13.3
99
github.com/containerd/console v1.0.3
1010
github.com/containerd/containerd v1.6.19
1111
github.com/cucumber/godog v0.0.0-00010101000000-000000000000 // replaced; see replace for the actual version used
@@ -92,7 +92,7 @@ require (
9292
github.com/hashicorp/go-memdb v1.3.2 // indirect
9393
github.com/hashicorp/golang-lru v0.5.4 // indirect
9494
github.com/hashicorp/hcl v1.0.0 // indirect
95-
github.com/imdario/mergo v0.3.14 // indirect
95+
github.com/imdario/mergo v0.3.15 // indirect
9696
github.com/inconshreveable/mousetrap v1.1.0 // indirect
9797
github.com/jinzhu/gorm v1.9.11 // indirect
9898
github.com/jonboulle/clockwork v0.4.0

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ github.com/cncf/xds/go v0.0.0-20210805033703-aa0b78936158/go.mod h1:eXthEFrGJvWH
165165
github.com/cncf/xds/go v0.0.0-20210922020428-25de7278fc84/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs=
166166
github.com/cncf/xds/go v0.0.0-20211001041855-01bcc9b48dfe/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs=
167167
github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs=
168-
github.com/compose-spec/compose-go v1.13.2 h1:FDfb5ddIpbGbxLRg5qjObOf5CrWbKnuHZ+zvpEdCqKc=
169-
github.com/compose-spec/compose-go v1.13.2/go.mod h1:SQfvBkB9u8bLhrj4RQP4I777SqzNLSl9/fNnfvOOjek=
168+
github.com/compose-spec/compose-go v1.13.3 h1:6ap8P6WcCrRKKCufGwV43SIqr47Y2wnZncqIh7DwyU0=
169+
github.com/compose-spec/compose-go v1.13.3/go.mod h1:rsiZ8uaOHJYJemDBzTe9UBpaq5ZFVEOO4TxM2G3SJxk=
170170
github.com/containerd/cgroups v1.0.4 h1:jN/mbWBEaz+T1pi5OFtnkQ+8qnmEbAr1Oo1FRm5B0dA=
171171
github.com/containerd/console v1.0.3 h1:lIr7SlA5PxZyMV30bDW0MGbiOPXwc63yRuCP0ARubLw=
172172
github.com/containerd/console v1.0.3/go.mod h1:7LqA/THxQ86k76b8c/EMSiaJ3h1eZkMkXar0TQ1gf3U=
@@ -447,8 +447,8 @@ github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpO
447447
github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
448448
github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
449449
github.com/imdario/mergo v0.3.5/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA=
450-
github.com/imdario/mergo v0.3.14 h1:fOqeC1+nCuuk6PKQdg9YmosXX7Y7mHX6R/0ZldI9iHo=
451-
github.com/imdario/mergo v0.3.14/go.mod h1:WBLT9ZmE3lPoWsEzCh9LPo3TiwVN+ZKEjmz+hD27ysY=
450+
github.com/imdario/mergo v0.3.15 h1:M8XP7IuFNsqUx6VPK2P9OSmsYsI/YFaGil0uD21V3dM=
451+
github.com/imdario/mergo v0.3.15/go.mod h1:WBLT9ZmE3lPoWsEzCh9LPo3TiwVN+ZKEjmz+hD27ysY=
452452
github.com/in-toto/in-toto-golang v0.5.0 h1:hb8bgwr0M2hGdDsLjkJ3ZqJ8JFLL/tgYdAxF/XEFBbY=
453453
github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
454454
github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=

pkg/compose/build.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -433,10 +433,10 @@ func getImageBuildLabels(project *types.Project, service types.ServiceConfig) ty
433433
return ret
434434
}
435435

436-
func toBuildContexts(additionalContexts map[string]*string) map[string]build.NamedContext {
436+
func toBuildContexts(additionalContexts types.Mapping) map[string]build.NamedContext {
437437
namedContexts := map[string]build.NamedContext{}
438-
for name, buildContext := range additionalContexts {
439-
namedContexts[name] = build.NamedContext{Path: *buildContext}
438+
for name, context := range additionalContexts {
439+
namedContexts[name] = build.NamedContext{Path: context}
440440
}
441441
return namedContexts
442442
}

pkg/compose/create.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -659,25 +659,25 @@ func setBlkio(blkio *types.BlkioConfig, resources *container.Resources) {
659659
for _, b := range blkio.DeviceReadBps {
660660
resources.BlkioDeviceReadBps = append(resources.BlkioDeviceReadBps, &blkiodev.ThrottleDevice{
661661
Path: b.Path,
662-
Rate: b.Rate,
662+
Rate: uint64(b.Rate),
663663
})
664664
}
665665
for _, b := range blkio.DeviceReadIOps {
666666
resources.BlkioDeviceReadIOps = append(resources.BlkioDeviceReadIOps, &blkiodev.ThrottleDevice{
667667
Path: b.Path,
668-
Rate: b.Rate,
668+
Rate: uint64(b.Rate),
669669
})
670670
}
671671
for _, b := range blkio.DeviceWriteBps {
672672
resources.BlkioDeviceWriteBps = append(resources.BlkioDeviceWriteBps, &blkiodev.ThrottleDevice{
673673
Path: b.Path,
674-
Rate: b.Rate,
674+
Rate: uint64(b.Rate),
675675
})
676676
}
677677
for _, b := range blkio.DeviceWriteIOps {
678678
resources.BlkioDeviceWriteIOps = append(resources.BlkioDeviceWriteIOps, &blkiodev.ThrottleDevice{
679679
Path: b.Path,
680-
Rate: b.Rate,
680+
Rate: uint64(b.Rate),
681681
})
682682
}
683683
}

0 commit comments

Comments
 (0)