diff --git a/cmd/gomote/get.go b/cmd/gomote/get.go index 81c97e56a5..98058c6d1b 100644 --- a/cmd/gomote/get.go +++ b/cmd/gomote/get.go @@ -70,7 +70,7 @@ func getTar(args []string) error { Directory: dir, }) if err != nil { - return fmt.Errorf("unable to retireve tgz URL: %s", statusFromError(err)) + return fmt.Errorf("unable to retrieve tgz URL: %s", statusFromError(err)) } httpClient := &http.Client{ Timeout: 10 * time.Second, diff --git a/dashboard/builders.go b/dashboard/builders.go index b5ce76259e..d0e9a080b2 100644 --- a/dashboard/builders.go +++ b/dashboard/builders.go @@ -766,7 +766,7 @@ type BuildConfig struct { // privateGoProxy for builder has it's own Go proxy instead of // proxy.golang.org, after setting this builder will respect - // GOPROXY enviroment value. + // GOPROXY environment value. privateGoProxy bool // InstallRacePackages controls which packages to "go install diff --git a/dashboard/builders_test.go b/dashboard/builders_test.go index 9a29a59fad..5bf661c2e0 100644 --- a/dashboard/builders_test.go +++ b/dashboard/builders_test.go @@ -504,7 +504,7 @@ func TestBuilderConfig(t *testing.T) { {b("js-wasm", "tour"), none}, {b("js-wasm", "website"), none}, - // Race builders. Linux for all, GCE buidlers for + // Race builders. Linux for all, GCE builders for // post-submit, and only post-submit for "go" for // Darwin (limited resources). {b("linux-amd64-race", "go"), both}, diff --git a/internal/access/README.md b/internal/access/README.md index 7760b72e81..806f2ec105 100644 --- a/internal/access/README.md +++ b/internal/access/README.md @@ -4,4 +4,4 @@ # golang.org/x/build/internal/access -Package access provides primatives for implementing authentication and authorization. +Package access provides primitives for implementing authentication and authorization. diff --git a/internal/access/doc.go b/internal/access/doc.go index 4238279ec4..795ae0f34b 100644 --- a/internal/access/doc.go +++ b/internal/access/doc.go @@ -2,6 +2,6 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// Package access provides primatives for implementing authentication and +// Package access provides primitives for implementing authentication and // authorization. package access diff --git a/internal/coordinator/pool/ec2_test.go b/internal/coordinator/pool/ec2_test.go index 102ccd710c..35065c0536 100644 --- a/internal/coordinator/pool/ec2_test.go +++ b/internal/coordinator/pool/ec2_test.go @@ -556,7 +556,7 @@ func (f *fakeEC2BuildletClient) StartNewVM(ctx context.Context, buildEnv *builde } condRun(opts.OnInstanceRequested) if !f.VMCreated { - return nil, errors.New("error waiting for instance to exist: vm existance disabled") + return nil, errors.New("error waiting for instance to exist: vm existence disabled") } condRun(opts.OnInstanceCreated) diff --git a/internal/coordinator/remote/ssh.go b/internal/coordinator/remote/ssh.go index fabb9c97cc..e3e00e6710 100644 --- a/internal/coordinator/remote/ssh.go +++ b/internal/coordinator/remote/ssh.go @@ -138,7 +138,7 @@ func (ss *SSHServer) ListenAndServe() error { return ss.server.ListenAndServe() } -// Close imediately closes all active listeners and connections. +// Close immediately closes all active listeners and connections. func (ss *SSHServer) Close() error { return ss.server.Close() } diff --git a/internal/gomote/README.md b/internal/gomote/README.md index a342f82681..91d2c3f128 100644 --- a/internal/gomote/README.md +++ b/internal/gomote/README.md @@ -4,4 +4,4 @@ # golang.org/x/build/internal/gomote -Package gomote contains all of the necessary components to implement and use the gomote funcitonality. +Package gomote contains all of the necessary components to implement and use the gomote functionality. diff --git a/internal/gomote/doc.go b/internal/gomote/doc.go index 2a94351036..3d932bd8b7 100644 --- a/internal/gomote/doc.go +++ b/internal/gomote/doc.go @@ -3,6 +3,6 @@ // license that can be found in the LICENSE file. // Package gomote contains all of the necessary components to implement -// and use the gomote funcitonality. Gomotes are instances which are dedicated +// and use the gomote functionality. Gomotes are instances which are dedicated // to an individual user or service. package gomote diff --git a/internal/gomote/gomote_test.go b/internal/gomote/gomote_test.go index 7418773702..d02fac70e9 100644 --- a/internal/gomote/gomote_test.go +++ b/internal/gomote/gomote_test.go @@ -519,7 +519,7 @@ func TestExecuteCommand(t *testing.T) { func TestExecuteCommandError(t *testing.T) { // This test will create a gomote instance and attempt to call TestExecuteCommand. - // If overrideID is set to true, the test will use a diffrent gomoteID than the + // If overrideID is set to true, the test will use a different gomoteID than the // the one created for the test. testCases := []struct { desc string diff --git a/internal/releasetargets/releasetargets.go b/internal/releasetargets/releasetargets.go index 9f4ec8fc5d..2ed9264f63 100644 --- a/internal/releasetargets/releasetargets.go +++ b/internal/releasetargets/releasetargets.go @@ -31,7 +31,7 @@ type ReleaseTargets map[string]*Target // propagated forward unless overridden. To remove a target in a later release, // set it to nil explicitly. // GOOS and GOARCH will be set automatically from the target name, but can be -// overridden if necessary. Name will also be set and should not be overriden. +// overridden if necessary. Name will also be set and should not be overridden. var allReleases = map[int]ReleaseTargets{ 18: { "darwin-amd64": &Target{ diff --git a/internal/relui/sign/server.go b/internal/relui/sign/server.go index 24b8ce6372..d565c24401 100644 --- a/internal/relui/sign/server.go +++ b/internal/relui/sign/server.go @@ -41,7 +41,7 @@ func NewServer() *SigningServer { } // UpdateSigningStatus uses a bidirectional streaming connection to send signing requests to the client and -// and recieve status updates on signing requests. There is no specific order which the requests or responses +// and receive status updates on signing requests. There is no specific order which the requests or responses // need to occur in. The connection returns an error once the context is canceled or an error is encountered. func (rs *SigningServer) UpdateSigningStatus(stream protos.ReleaseService_UpdateSigningStatusServer) error { _, err := access.IAPFromContext(stream.Context()) diff --git a/internal/relui/sign/server_test.go b/internal/relui/sign/server_test.go index 272f0c4722..ab75c4a89c 100644 --- a/internal/relui/sign/server_test.go +++ b/internal/relui/sign/server_test.go @@ -50,7 +50,7 @@ func TestUpdateSigningStatusError(t *testing.T) { t.Fatalf("stream.Recv() = %s, want %s", status.Code(err), wantCode) } }) - t.Run("non-existant signing request", func(t *testing.T) { + t.Run("non-existent signing request", func(t *testing.T) { // skipping due to go.dev/issue/54654 t.Skip("skipping flaky test. see go.dev/issue/54654") diff --git a/internal/workflow/workflow_test.go b/internal/workflow/workflow_test.go index 3a6ace3207..503a5bcb9c 100644 --- a/internal/workflow/workflow_test.go +++ b/internal/workflow/workflow_test.go @@ -564,7 +564,7 @@ func (l *mapListener) TaskStateChanged(workflowID uuid.UUID, taskID string, stat func (l *mapListener) assertState(t *testing.T, w *wf.Workflow, want map[string]*wf.TaskState) { t.Helper() if diff := cmp.Diff(l.states[w.ID], want, cmpopts.IgnoreFields(wf.TaskState{}, "SerializedResult")); diff != "" { - t.Errorf("task state didn't match expections: %v", diff) + t.Errorf("task state didn't match expectations: %v", diff) } } diff --git a/third_party/bandchart/bandchart.js b/third_party/bandchart/bandchart.js index 0f89cd4dac..cf5dcfaa37 100644 --- a/third_party/bandchart/bandchart.js +++ b/third_party/bandchart/bandchart.js @@ -40,7 +40,7 @@ function BandChart(data, { // For (3) make sure the Y=0 line is in the middle. // // Finally, make sure we don't get closer than 0.025, - // bceuase otherwise it just looks really noisy. + // because otherwise it just looks really noisy. const minYDomain = [-0.025, 0.025]; if (yDomain[0] > 0) { // (1)