Browse code

builder-next/executor: Replace removed network.Sample

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>

Paweł Gronowski authored on 2024/03/06 20:02:12
Showing 1 changed files
... ...
@@ -16,6 +16,7 @@ import (
16 16
 	"github.com/moby/buildkit/executor"
17 17
 	"github.com/moby/buildkit/executor/oci"
18 18
 	"github.com/moby/buildkit/executor/resources"
19
+	resourcestypes "github.com/moby/buildkit/executor/resources/types"
19 20
 	"github.com/moby/buildkit/executor/runcexecutor"
20 21
 	"github.com/moby/buildkit/identity"
21 22
 	"github.com/moby/buildkit/solver/pb"
... ...
@@ -128,8 +129,8 @@ func (iface *lnInterface) init(c *libnetwork.Controller, n *libnetwork.Network)
128 128
 }
129 129
 
130 130
 // TODO(neersighted): Unstub Sample(), and collect data from the libnetwork Endpoint.
131
-func (iface *lnInterface) Sample() (*network.Sample, error) {
132
-	return &network.Sample{}, nil
131
+func (iface *lnInterface) Sample() (*resourcestypes.NetworkSample, error) {
132
+	return &resourcestypes.NetworkSample{}, nil
133 133
 }
134 134
 
135 135
 func (iface *lnInterface) Set(s *specs.Spec) error {