Skip to content

Commit

Permalink
The workaround to fix the label loss (#741)
Browse files Browse the repository at this point in the history
* The workaround to fix the label loss

Signed-off-by: nullday <aseaday@hotmail.com>

* Add comment

Signed-off-by: nullday <aseaday@hotmail.com>
  • Loading branch information
aseaday committed Aug 9, 2022
1 parent dd609da commit 4df956b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/builder/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 4df956b

Please sign in to comment.