Files
zeekay 7844a60aff refactor(pack): modernize to github.com/hanzoai/pack and remove upstream branding
- Migrate module path to github.com/hanzoai/pack across all Go packages
- Remove legacy upstream docs and competitor brand references
- Modernize LLM.md and mise.toml for pristine Hanzo Pack builder
2026-09-04 00:40:42 -07:00

46 lines
875 B
Go

package build_llb
import (
"github.com/moby/buildkit/client/llb"
"github.com/hanzoai/pack/buildkit/graph"
"github.com/hanzoai/pack/core/plan"
)
type StepNode struct {
Step *plan.Step
State *llb.State
parents []graph.Node
children []graph.Node
Processed bool
InProgress bool
InputEnv BuildEnvironment
OutputEnv BuildEnvironment
}
func (n *StepNode) GetName() string {
return n.Step.Name
}
func (n *StepNode) GetParents() []graph.Node {
return n.parents
}
func (n *StepNode) SetParents(parents []graph.Node) {
n.parents = parents
}
func (n *StepNode) GetChildren() []graph.Node {
return n.children
}
func (n *StepNode) SetChildren(children []graph.Node) {
n.children = children
}
func (node *StepNode) getPathList() []string {
pathList := make([]string, 0)
pathList = append(pathList, node.OutputEnv.PathList...)
return pathList
}