Skip to content

Commit

Permalink
client: make sure ref is configurable for the history API
Browse files Browse the repository at this point in the history
Signed-off-by: Tonis Tiigi <[email protected]>
(cherry picked from commit e7ff7ea)
  • Loading branch information
tonistiigi committed Jan 25, 2023
1 parent b3b0b85 commit 2445185
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/solve.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ type SolveOpt struct {
SessionPreInitialized bool // TODO: refactor to better session syncing
Internal bool
SourcePolicy *spb.Policy
Ref string
}

type ExportEntry struct {
Expand Down Expand Up @@ -95,6 +96,9 @@ func (c *Client) solve(ctx context.Context, def *llb.Definition, runGateway runG
}

ref := identity.NewID()
if opt.Ref != "" {
ref = opt.Ref
}
eg, ctx := errgroup.WithContext(ctx)

statusContext, cancelStatus := context.WithCancel(context.Background())
Expand Down

0 comments on commit 2445185

Please sign in to comment.