From 466502e0879b682500b3f7094366e0f910b724e7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 12 Jul 2023 11:38:02 +0000 Subject: [PATCH 1/5] chore: bump the github-actions group with 1 update Bumps the github-actions group with 1 update: [crate-ci/typos](https://github.com/crate-ci/typos). - [Release notes](https://github.com/crate-ci/typos/releases) - [Changelog](https://github.com/crate-ci/typos/blob/master/CHANGELOG.md) - [Commits](https://github.com/crate-ci/typos/compare/v1.14.12...v1.16.0) --- updated-dependencies: - dependency-name: crate-ci/typos dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions ... Signed-off-by: dependabot[bot] --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 52055c171f526..78bf4f0b437be 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -122,7 +122,7 @@ jobs: # Check for any typos - name: Check for typos - uses: crate-ci/typos@v1.14.12 + uses: crate-ci/typos@v1.16.0 with: config: .github/workflows/typos.toml From 1c12aee8b62026de5795939f729b1711c6492b47 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Wed, 12 Jul 2023 14:41:41 +0300 Subject: [PATCH 2/5] ignore O_WORNLY --- .github/workflows/typos.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/typos.toml b/.github/workflows/typos.toml index 10dcbd838324a..7410c4ee9c684 100644 --- a/.github/workflows/typos.toml +++ b/.github/workflows/typos.toml @@ -4,6 +4,7 @@ Jetbrains = "JetBrains" IST = "IST" MacOS = "macOS" AKS = "AKS" +O_WRONLY = "O_WRONLY" [default.extend-words] AKS = "AKS" From e88b34dd7e50f2b2c0222b35170e8c2c2ad7b30f Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Wed, 12 Jul 2023 14:44:28 +0300 Subject: [PATCH 3/5] fix typo in logs.go --- codersdk/agentsdk/logs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codersdk/agentsdk/logs.go b/codersdk/agentsdk/logs.go index 5eb2d33be0667..0185085b0d4b8 100644 --- a/codersdk/agentsdk/logs.go +++ b/codersdk/agentsdk/logs.go @@ -93,7 +93,7 @@ func StartupLogsWriter(ctx context.Context, sender func(ctx context.Context, log // will be discarded. func StartupLogsSender(patchStartupLogs func(ctx context.Context, req PatchStartupLogs) error, logger slog.Logger) (sendLog func(ctx context.Context, log ...StartupLog) error, flushAndClose func(context.Context) error) { // The main context is used to close the sender goroutine and cancel - // any outbound requests to the API. The shudown context is used to + // any outbound requests to the API. The shutdown context is used to // signal the sender goroutine to flush logs and then exit. ctx, cancel := context.WithCancel(context.Background()) shutdownCtx, shutdown := context.WithCancel(ctx) From d5f359bdf331cee100938733aa452e14ab155950 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Wed, 12 Jul 2023 14:45:18 +0300 Subject: [PATCH 4/5] fix typo in replicasync.go --- enterprise/replicasync/replicasync.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enterprise/replicasync/replicasync.go b/enterprise/replicasync/replicasync.go index a2bcb8837288e..3e1f7d866c9b0 100644 --- a/enterprise/replicasync/replicasync.go +++ b/enterprise/replicasync/replicasync.go @@ -378,7 +378,7 @@ func (m *Manager) Close() error { defer m.mutex.Unlock() ctx, cancelFunc := context.WithTimeout(context.Background(), 5*time.Second) defer cancelFunc() - // nolint:gocritic // Updating a replica is a sytsem function. + // nolint:gocritic // Updating a replica is a system function. _, err := m.db.UpdateReplica(dbauthz.AsSystemRestricted(ctx), database.UpdateReplicaParams{ ID: m.self.ID, UpdatedAt: database.Now(), From 3178473575dccb25958f993109b18a8b954df5bf Mon Sep 17 00:00:00 2001 From: Mathias Fredriksson Date: Wed, 12 Jul 2023 11:55:39 +0000 Subject: [PATCH 5/5] ignore typose in test files --- .github/workflows/typos.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/typos.toml b/.github/workflows/typos.toml index 7410c4ee9c684..bb85799224527 100644 --- a/.github/workflows/typos.toml +++ b/.github/workflows/typos.toml @@ -26,4 +26,6 @@ extend-exclude = [ "**XService**.ts", "**identity.go", "scripts/ci-report/testdata/**", + "**/*_test.go", + "**/*.test.tsx" ]