From 4df956b14ec05ac4204d8891b6791f065205b5c5 Mon Sep 17 00:00:00 2001 From: nullday Date: Tue, 9 Aug 2022 09:45:33 +0800 Subject: [PATCH] The workaround to fix the label loss (#741) * The workaround to fix the label loss Signed-off-by: nullday * Add comment Signed-off-by: nullday --- pkg/builder/builder.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/builder/builder.go b/pkg/builder/builder.go index 9ddf66ec5..22b8a8af0 100644 --- a/pkg/builder/builder.go +++ b/pkg/builder/builder.go @@ -140,6 +140,11 @@ func (b generalBuilder) NumGPUs() int { func (b generalBuilder) Build(ctx context.Context, force bool) error { if !force && !b.checkIfNeedBuild(ctx) { + // The container label needs the interpreted defaultGrpah to be set in `StartEnvd` + // TODO(Qi Chen): remove this hack + if err := b.Interpret(); err != nil { + return errors.Wrap(err, "failed to interpret") + } return nil }