Skip to content

Commit c4fc6c3

Browse files
committed
builder-next/executor: Replace removed network.Sample
Signed-off-by: Paweł Gronowski <[email protected]>
1 parent 0f30791 commit c4fc6c3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

builder/builder-next/executor_linux.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import (
1616
"github.com/moby/buildkit/executor"
1717
"github.com/moby/buildkit/executor/oci"
1818
"github.com/moby/buildkit/executor/resources"
19+
resourcestypes "github.com/moby/buildkit/executor/resources/types"
1920
"github.com/moby/buildkit/executor/runcexecutor"
2021
"github.com/moby/buildkit/identity"
2122
"github.com/moby/buildkit/solver/pb"
@@ -128,8 +129,8 @@ func (iface *lnInterface) init(c *libnetwork.Controller, n *libnetwork.Network)
128129
}
129130

130131
// TODO(neersighted): Unstub Sample(), and collect data from the libnetwork Endpoint.
131-
func (iface *lnInterface) Sample() (*network.Sample, error) {
132-
return &network.Sample{}, nil
132+
func (iface *lnInterface) Sample() (*resourcestypes.NetworkSample, error) {
133+
return &resourcestypes.NetworkSample{}, nil
133134
}
134135

135136
func (iface *lnInterface) Set(s *specs.Spec) error {

0 commit comments

Comments
 (0)