build: move solveOpt to local struct type

*client.SolveOpt in driver code is only used by build code.
For a clear separation of concerns, move it to an internal
struct type only accessible by BuildWithResultHandler func.

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2023-12-04 11:27:59 +01:00
parent 54032316f9
commit 9d8ac1ce2d
2 changed files with 21 additions and 12 deletions

View File

@ -19,8 +19,6 @@ import (
)
type resolvedNode struct {
SolveOpt *client.SolveOpt
resolver *nodeResolver
driverIndex int
platforms []specs.Platform