From 7925a967263a18259916c0a991b5bffc00e41819 Mon Sep 17 00:00:00 2001 From: co63oc Date: Sun, 2 Mar 2025 21:20:02 +0800 Subject: [PATCH] Fix Signed-off-by: co63oc --- bake/hclparser/gohcl/encode.go | 2 +- build/build.go | 2 +- controller/control/controller.go | 4 ++-- controller/processes/processes.go | 2 +- driver/kubernetes/podchooser/podchooser.go | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bake/hclparser/gohcl/encode.go b/bake/hclparser/gohcl/encode.go index 8edd632c..917cda96 100644 --- a/bake/hclparser/gohcl/encode.go +++ b/bake/hclparser/gohcl/encode.go @@ -34,7 +34,7 @@ import ( // The layout of the resulting HCL source is derived from the ordering of // the struct fields, with blank lines around nested blocks of different types. // Fields representing attributes should usually precede those representing -// blocks so that the attributes can group togather in the result. For more +// blocks so that the attributes can group together in the result. For more // control, use the hclwrite API directly. func EncodeIntoBody(val interface{}, dst *hclwrite.Body) { rv := reflect.ValueOf(val) diff --git a/build/build.go b/build/build.go index c77caa4b..96f85069 100644 --- a/build/build.go +++ b/build/build.go @@ -622,7 +622,7 @@ func BuildWithResultHandler(ctx context.Context, nodes []builder.Node, opts map[ // This is fallback for some very old buildkit versions. // Note that the mediatype isn't really correct as most of the time it is image manifest and // not manifest list but actually both are handled because for Docker mediatypes the - // mediatype value in the Accpet header does not seem to matter. + // mediatype value in the Accept header does not seem to matter. s, ok = r.ExporterResponse[exptypes.ExporterImageDigestKey] if ok { descs = append(descs, specs.Descriptor{ diff --git a/controller/control/controller.go b/controller/control/controller.go index 464dfa2b..c0eb805e 100644 --- a/controller/control/controller.go +++ b/controller/control/controller.go @@ -13,8 +13,8 @@ import ( type BuildxController interface { Build(ctx context.Context, options *controllerapi.BuildOptions, in io.ReadCloser, progress progress.Writer) (ref string, resp *client.SolveResponse, inputs *build.Inputs, err error) // Invoke starts an IO session into the specified process. - // If pid doesn't matche to any running processes, it starts a new process with the specified config. - // If there is no container running or InvokeConfig.Rollback is speicfied, the process will start in a newly created container. + // If pid doesn't match to any running processes, it starts a new process with the specified config. + // If there is no container running or InvokeConfig.Rollback is specified, the process will start in a newly created container. // NOTE: If needed, in the future, we can split this API into three APIs (NewContainer, NewProcess and Attach). Invoke(ctx context.Context, ref, pid string, options *controllerapi.InvokeConfig, ioIn io.ReadCloser, ioOut io.WriteCloser, ioErr io.WriteCloser) error Kill(ctx context.Context) error diff --git a/controller/processes/processes.go b/controller/processes/processes.go index e5acc708..dee82d84 100644 --- a/controller/processes/processes.go +++ b/controller/processes/processes.go @@ -39,7 +39,7 @@ func (p *Process) Done() <-chan error { return p.errCh } -// Manager manages a set of proceses. +// Manager manages a set of processes. type Manager struct { container atomic.Value processes sync.Map diff --git a/driver/kubernetes/podchooser/podchooser.go b/driver/kubernetes/podchooser/podchooser.go index 06a29441..901a31d8 100644 --- a/driver/kubernetes/podchooser/podchooser.go +++ b/driver/kubernetes/podchooser/podchooser.go @@ -90,7 +90,7 @@ func ListRunningPods(ctx context.Context, client clientcorev1.PodInterface, depl for i := range podList.Items { pod := &podList.Items[i] if pod.Status.Phase == corev1.PodRunning { - logrus.Debugf("pod runnning: %q", pod.Name) + logrus.Debugf("pod running: %q", pod.Name) runningPods = append(runningPods, pod) } }