diff --git a/.github/actions/setup-parity-runtime/action.yml b/.github/actions/setup-parity-runtime/action.yml index 8ee5eaf..e8d634a 100644 --- a/.github/actions/setup-parity-runtime/action.yml +++ b/.github/actions/setup-parity-runtime/action.yml @@ -11,6 +11,7 @@ runs: - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7 with: go-version-file: go.mod + - uses: spin-stack/go-tools@116dfa6befab594f25ad4553e375061e3fa80f27 # v20261128.01 # pnpm installs the reference, through the firewall (task reference). - uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0 with: @@ -21,7 +22,7 @@ runs: # Free disk, enable the containerd image store (build-cache export) and turn # bake's filesystem entitlement off. Reuses the Taskfile so the runner prep # is identical to release.yml. - - run: go tool task ci:prepare-runner + - run: task ci:prepare-runner shell: bash - - run: go tool task reference + - run: task reference shell: bash diff --git a/.github/deadcode-allow.txt b/.github/deadcode-allow.txt index 4413cef..19c231a 100644 --- a/.github/deadcode-allow.txt +++ b/.github/deadcode-allow.txt @@ -1,3 +1,3 @@ -# Functions no binary reaches that are correct for ever, one ` # why` a line (go tool deadgate -allow). +# Functions no binary reaches that are correct for ever, one ` # why` a line (deadgate -allow). # An entry that matches nothing fails, so the list only shrinks. package internal/tsoracle/oracletest # test helper: the Go tests assert their ports against the testdata/ts-oracle goldens with it; no binary should link it diff --git a/.github/deadcode-pending.txt b/.github/deadcode-pending.txt index c435dd0..14f4e2a 100644 --- a/.github/deadcode-pending.txt +++ b/.github/deadcode-pending.txt @@ -1,2 +1,2 @@ -# Functions no binary reaches whose deletion somebody owes, one ` # why` a line (go tool deadgate -pending). +# Functions no binary reaches whose deletion somebody owes, one ` # why` a line (deadgate -pending). # Printed on every green run; an entry that matches nothing fails. diff --git a/.github/testquality-allow.txt b/.github/testquality-allow.txt index b156eaf..9449a89 100644 --- a/.github/testquality-allow.txt +++ b/.github/testquality-allow.txt @@ -1,3 +1,3 @@ # Tests testquality reports that are kept on purpose, one : a line with why -# (go tool testquality -allow). An entry that matches nothing fails, so the list only shrinks. +# (testquality -allow). An entry that matches nothing fails, so the list only shrinks. github.com/devcontainers/cli/internal/exec:TestHelperProcess # the child process OSRunner tests exec; it asserts nothing by design, the parent tests do diff --git a/.github/workflows/go-cli.yml b/.github/workflows/go-cli.yml index 20254a3..b46ad23 100644 --- a/.github/workflows/go-cli.yml +++ b/.github/workflows/go-cli.yml @@ -54,10 +54,13 @@ jobs: - uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7 with: go-version-file: go.mod + # Task and every go-tools command, from go-tools' latest release, before any job's first + # `task`: no go.mod pins them, and an older pin of this action installs the same release. + - uses: spin-stack/go-tools@116dfa6befab594f25ad4553e375061e3fa80f27 # v20261128.01 - name: What this change broke, and whether a test noticed env: BASE: origin/${{ github.base_ref }} - run: go tool task mutate + run: task mutate lint-and-test: runs-on: ubuntu-latest @@ -73,6 +76,7 @@ jobs: - uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7 with: go-version-file: go.mod + - uses: spin-stack/go-tools@116dfa6befab594f25ad4553e375061e3fa80f27 # v20261128.01 # golangci-lint's analysis of each package, which setup-go does not keep, keyed by content # inside, so any older copy is safe to start from: saved under the commit, restored from the @@ -84,17 +88,17 @@ jobs: key: golangci-lint-${{ github.sha }} restore-keys: golangci-lint- - - run: go tool task lint - - run: go tool task spec:compliance - - run: go tool task vuln - - run: go tool task test:race - - run: go tool task coverage + - run: task lint + - run: task spec:compliance + - run: task vuln + - run: task test:race + - run: task coverage - name: Coverage summary if: always() - run: go tool task coverage:summary SRC=coverage.out TITLE="unit (hermetic)" - - run: go tool task test:integration - - run: go tool task build - - run: go tool task build:smoke + run: task coverage:summary SRC=coverage.out TITLE="unit (hermetic)" + - run: task test:integration + - run: task build + - run: task build:smoke # Binary covdata for the cross-lane merge (coverage-report job). - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7 @@ -114,11 +118,12 @@ jobs: - uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7 with: go-version-file: go.mod + - uses: spin-stack/go-tools@116dfa6befab594f25ad4553e375061e3fa80f27 # v20261128.01 - - run: go tool task coverage:e2e + - run: task coverage:e2e - name: Coverage summary if: always() - run: go tool task coverage:summary SRC=artifacts/coverage/data/e2e TITLE=e2e + run: task coverage:summary SRC=artifacts/coverage/data/e2e TITLE=e2e - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7 if: always() with: @@ -126,7 +131,7 @@ jobs: path: artifacts/coverage/data/e2e if-no-files-found: error - if: always() - run: go tool task clean + run: task clean # Hermetic parity gate: read-configuration golden comparison + the contract # lane of the parity matrix (flag validation / output contract, no Docker). @@ -143,6 +148,7 @@ jobs: - uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7 with: go-version-file: go.mod + - uses: spin-stack/go-tools@116dfa6befab594f25ad4553e375061e3fa80f27 # v20261128.01 # pnpm installs the reference, through the firewall (task reference); pnpm 11 needs Node 22.13+. - uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1 with: @@ -151,18 +157,18 @@ jobs: with: node-version: "24" - - run: go tool task reference - - run: go tool task parity:contract - - run: go tool task parity:network + - run: task reference + - run: task parity:contract + - run: task parity:network # Coverage is measured separately with an instrumented Go binary. Keep the # functional parity run above release-like, and avoid conflating subprocess # coverage with the hermetic unit profile. - - run: go tool task coverage:parity-contract + - run: task coverage:parity-contract - name: Coverage summary if: always() - run: go tool task coverage:summary SRC=artifacts/coverage/data/contract TITLE=parity:contract + run: task coverage:summary SRC=artifacts/coverage/data/contract TITLE=parity:contract - if: always() - run: go tool task reference:commit + run: task reference:commit - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7 if: always() with: @@ -191,8 +197,9 @@ jobs: - uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7 with: go-version-file: go.mod + - uses: spin-stack/go-tools@116dfa6befab594f25ad4553e375061e3fa80f27 # v20261128.01 - id: check - run: go tool task ci:daily-changes + run: task ci:daily-changes # Single sharded runtime parity matrix, parameterized by event: # push/PR — SCOPED to the commands the diff can affect (devtool parity-affected), @@ -242,13 +249,14 @@ jobs: - uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7 with: go-version-file: go.mod + - uses: spin-stack/go-tools@116dfa6befab594f25ad4553e375061e3fa80f27 # v20261128.01 - name: Plan this run id: plan # A pull request's diff is its base..head; a push's, what it moved the branch from..to. env: DIFF_BASE: ${{ github.event.pull_request.base.sha || github.event.before }} DIFF_HEAD: ${{ github.event.pull_request.head.sha || github.sha }} - run: go tool task parity:plan + run: task parity:plan - if: steps.plan.outputs.run == 'true' uses: ./.github/actions/setup-parity-runtime # push/PR: scoped, plain binary — a fast gate. @@ -256,16 +264,16 @@ jobs: if: steps.plan.outputs.run == 'true' && (github.event_name == 'push' || github.event_name == 'pull_request') env: PARITY_COMMAND: ${{ steps.plan.outputs.commands }} - run: go tool task parity:runtime + run: task parity:runtime # daily: full matrix, instrumented binary — gates parity AND measures coverage. - name: Run parity (full, instrumented) if: steps.plan.outputs.run == 'true' && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') - run: go tool task coverage:parity-runtime + run: task coverage:parity-runtime - name: Coverage summary if: always() && steps.plan.outputs.run == 'true' && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') - run: go tool task coverage:summary SRC=artifacts/coverage/data/runtime TITLE="parity:runtime shard $PARITY_SHARD_INDEX" + run: task coverage:summary SRC=artifacts/coverage/data/runtime TITLE="parity:runtime shard $PARITY_SHARD_INDEX" - if: always() && steps.plan.outputs.run == 'true' - run: go tool task reference:commit + run: task reference:commit - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7 if: always() && steps.plan.outputs.run == 'true' with: @@ -280,7 +288,7 @@ jobs: path: artifacts/coverage/data/runtime if-no-files-found: error - if: always() && steps.plan.outputs.run == 'true' - run: go tool task clean + run: task clean # Publish parity (features/templates → ephemeral OCI registry). Daily only, its own # job so it doesn't steal a runtime shard's runner. @@ -296,10 +304,10 @@ jobs: with: submodules: recursive - uses: ./.github/actions/setup-parity-runtime - - run: go tool task coverage:parity-publish + - run: task coverage:parity-publish - name: Coverage summary if: always() - run: go tool task coverage:summary SRC=artifacts/coverage/data/publish TITLE=parity:publish + run: task coverage:summary SRC=artifacts/coverage/data/publish TITLE=parity:publish - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7 if: always() with: @@ -307,7 +315,7 @@ jobs: path: artifacts/coverage/data/publish if-no-files-found: error - if: always() - run: go tool task clean + run: task clean # Single gate + cross-lane coverage for ALL events (absorbs the old push/PR # parity-runtime aggregator, the daily report, and the per-PR coverage-report): @@ -324,15 +332,16 @@ jobs: - uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7 with: go-version-file: go.mod + - uses: spin-stack/go-tools@116dfa6befab594f25ad4553e375061e3fa80f27 # v20261128.01 - name: Download all lane covdata uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8 with: pattern: covdata-* path: artifacts/coverage/data - name: Normalize lane dirs - run: go tool task coverage:unpack + run: task coverage:unpack - name: Merged coverage report - run: go tool task coverage:merge + run: task coverage:merge - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7 with: name: covdata-merged @@ -344,7 +353,7 @@ jobs: env: RUNTIME_RESULT: ${{ needs.parity-runtime.result }} PUBLISH_RESULT: ${{ needs.parity-publish-full.result }} - run: go tool task parity:gate + run: task parity:gate cross-compile: runs-on: ubuntu-latest @@ -355,5 +364,6 @@ jobs: - uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7 with: go-version-file: go.mod + - uses: spin-stack/go-tools@116dfa6befab594f25ad4553e375061e3fa80f27 # v20261128.01 - - run: go tool task build:cross + - run: task build:cross diff --git a/.github/workflows/refresh.yml b/.github/workflows/refresh.yml index bb483c3..86ffb5e 100644 --- a/.github/workflows/refresh.yml +++ b/.github/workflows/refresh.yml @@ -32,6 +32,7 @@ jobs: - uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7 with: go-version-file: go.mod + - uses: spin-stack/go-tools@116dfa6befab594f25ad4553e375061e3fa80f27 # v20261128.01 - name: Propose the pins CI checks at their newest env: GITHUB_TOKEN: ${{ github.token }} @@ -40,4 +41,4 @@ jobs: GIT_AUTHOR_EMAIL: 41898282+github-actions[bot]@users.noreply.github.com GIT_COMMITTER_NAME: github-actions[bot] GIT_COMMITTER_EMAIL: 41898282+github-actions[bot]@users.noreply.github.com - run: go tool task refresh + run: task refresh diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 14886e5..44a1c48 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -38,12 +38,13 @@ jobs: - uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7 with: go-version-file: go.mod + - uses: spin-stack/go-tools@116dfa6befab594f25ad4553e375061e3fa80f27 # v20261128.01 - id: resolve # Untrusted dispatch input passed via env (never interpolated into the # script) to avoid shell injection. env: VERSION_INPUT: ${{ inputs.version }} - run: go tool task release:resolve + run: task release:resolve # Hermetic gates — the same task targets CI runs on every push/PR. # The release is blocked unless these pass. @@ -58,6 +59,7 @@ jobs: - uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7 with: go-version-file: go.mod + - uses: spin-stack/go-tools@116dfa6befab594f25ad4553e375061e3fa80f27 # v20261128.01 # pnpm installs the reference, through the firewall (task reference); pnpm 11 needs Node 22.13+. - uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1 with: @@ -66,15 +68,15 @@ jobs: with: node-version: "24" - - run: go tool task lint - - run: go tool task spec:compliance - - run: go tool task vuln - - run: go tool task test:race - - run: go tool task coverage - - run: go tool task test:integration - - run: go tool task reference - - run: go tool task parity:contract - - run: go tool task parity:network + - run: task lint + - run: task spec:compliance + - run: task vuln + - run: task test:race + - run: task coverage + - run: task test:integration + - run: task reference + - run: task parity:contract + - run: task parity:network # Runtime lane (real Docker containers). ubuntu-latest ships Docker. gate-runtime: @@ -93,6 +95,7 @@ jobs: - uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7 with: go-version-file: go.mod + - uses: spin-stack/go-tools@116dfa6befab594f25ad4553e375061e3fa80f27 # v20261128.01 # pnpm installs the reference, through the firewall (task reference); pnpm 11 needs Node 22.13+. - uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1 with: @@ -104,17 +107,17 @@ jobs: # which the default docker driver cannot do — its precondition fails ~1s in. # Reuse the same runner prep as the go-cli.yml runtime job, or a tagged # release stalls on a default-driver runner. - - run: go tool task ci:prepare-runner + - run: task ci:prepare-runner - - run: go tool task reference - - run: go tool task test:e2e - - run: go tool task parity:runtime + - run: task reference + - run: task test:e2e + - run: task parity:runtime # OCI publish parity (features/templates publish into a throwaway registry). # Runs daily in go-cli.yml; gate it on release too so a tag cannot ship a # regression in the publish path that daily CI would only catch afterwards. - - run: go tool task parity:publish + - run: task parity:publish - if: always() - run: go tool task clean + run: task clean # Create the tag ONLY on the dispatch path and ONLY after the gates pass, so a # failing gate never leaves an orphan (immutable) tag. On a tag push this job is @@ -132,10 +135,11 @@ jobs: - uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7 with: go-version-file: go.mod + - uses: spin-stack/go-tools@116dfa6befab594f25ad4553e375061e3fa80f27 # v20261128.01 - env: RELEASE_TAG: ${{ needs.prepare.outputs.tag }} RELEASE_VERSION: ${{ needs.prepare.outputs.version }} - run: go tool task release:tag + run: task release:tag goreleaser: runs-on: ubuntu-latest @@ -164,6 +168,7 @@ jobs: - uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7 with: go-version-file: go.mod + - uses: spin-stack/go-tools@116dfa6befab594f25ad4553e375061e3fa80f27 # v20261128.01 # syft powers the sboms: block in .goreleaser.yml and the image SBOM below. - uses: anchore/sbom-action/download-syft@66cbf4bc1f1c0d2edc94016e65bc221b6bb0ad6c # v0.24.3 @@ -184,7 +189,7 @@ jobs: - uses: sigstore/cosign-installer@756fe2d284c7292c4e9b62c8a28f1e5629c59532 # v4.1.3 # The released image's base, by digest from versions.yaml. - - run: go tool task release:env + - run: task release:env - uses: goreleaser/goreleaser-action@a4f02ab5355a589de60d917a659ce617ed19b3de # v7 with: @@ -198,13 +203,13 @@ jobs: - name: Smoke test (docker run --version) env: RELEASE_VERSION: ${{ needs.prepare.outputs.version }} - run: go tool task release:smoke + run: task release:smoke - name: Record image digest id: digest env: RELEASE_VERSION: ${{ needs.prepare.outputs.version }} - run: go tool task release:digest + run: task release:digest # Move the mutable :latest tag to this release's digest. Best-effort: a # `latest` tag is incompatible with GHCR immutable tags, so if the registry @@ -213,13 +218,13 @@ jobs: continue-on-error: true env: RELEASE_DIGEST: ${{ steps.digest.outputs.digest }} - run: go tool task release:latest + run: task release:latest # Image-level SBOM + keyless provenance signature (release:sign). - name: Sign image and attest SBOM (cosign keyless) env: RELEASE_DIGEST: ${{ steps.digest.outputs.digest }} - run: go tool task release:sign + run: task release:sign # Non-gating: perf/distribution metrics recorded per release, never blocks. metrics: @@ -234,6 +239,7 @@ jobs: - uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7 with: go-version-file: go.mod + - uses: spin-stack/go-tools@116dfa6befab594f25ad4553e375061e3fa80f27 # v20261128.01 # pnpm installs the reference, through the firewall (task reference); pnpm 11 needs Node 22.13+. - uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1 with: @@ -242,9 +248,9 @@ jobs: with: node-version: "24" - - run: go tool task build:cross - - run: go tool task reference - - run: go tool task metrics + - run: task build:cross + - run: task reference + - run: task metrics - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7 if: always() with: diff --git a/.goreleaser.yml b/.goreleaser.yml index f63b8c2..86e2d5c 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -10,7 +10,7 @@ before: hooks: - go mod tidy # What archives: and dockers_v2: ship beside the binary: the licences of what it links. - - go tool task release:notices + - task release:notices # NOTE: `go test ./...` is intentionally NOT run here. It would sweep the # Docker/network parity suites and reference/node_modules. Gating lives in # the CI / tag workflow (.github/workflows/release.yml), not the release hook. diff --git a/README.md b/README.md index 56d9891..af388af 100644 --- a/README.md +++ b/README.md @@ -159,6 +159,7 @@ flags, limitations, and automation-friendly JSON output. The usual local development loop is: ```sh +go install github.com/spin-stack/go-tools/cmd/task@latest # once task build task test:unit task test:integration diff --git a/docs/installation.md b/docs/installation.md index ab946cc..7e37a2f 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -38,7 +38,8 @@ repeatable. ## Build from source -Building requires Go and, when using the project task, [Task](https://taskfile.dev). +Building requires Go and, when using the project task, go-tools' Task, installed once with +`go install github.com/spin-stack/go-tools/cmd/task@latest`. ```sh git clone https://github.com/spin-stack/devcontainer-cli diff --git a/go.mod b/go.mod index 8626c8b..b5bfc04 100644 --- a/go.mod +++ b/go.mod @@ -15,7 +15,7 @@ require ( github.com/opencontainers/image-spec v1.1.1 github.com/spf13/cobra v1.10.2 github.com/spf13/pflag v1.1.0 - github.com/spin-stack/go-tools v0.20261127.15 + github.com/spin-stack/go-tools v0.20261128.1 github.com/tailscale/hujson v0.0.0-20260727124030-b80ff77dac4f github.com/testcontainers/testcontainers-go v0.45.0 go.uber.org/mock v0.6.0 @@ -87,7 +87,6 @@ require ( ) tool ( - github.com/spin-stack/go-tools/cmd/task go.uber.org/mock/mockgen golang.org/x/tools/cmd/deadcode ) diff --git a/go.sum b/go.sum index f76aced..d46b8b6 100644 --- a/go.sum +++ b/go.sum @@ -112,8 +112,8 @@ github.com/spf13/cobra v1.10.2/go.mod h1:7C1pvHqHw5A4vrJfjNwvOdzYu0Gml16OCs2GRiT github.com/spf13/pflag v1.0.9/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/spf13/pflag v1.1.0 h1:6W6MbVUrnMb8PEhjkqwsVLY7ryuzRfFHF4mQd7L94ag= github.com/spf13/pflag v1.1.0/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= -github.com/spin-stack/go-tools v0.20261127.15 h1:G+Ps5zOyJKQA9K0iN+ML1MHPfIAYtO+vIhLfT48skVc= -github.com/spin-stack/go-tools v0.20261127.15/go.mod h1:53OPE4ZN80sLk833EXfF/Nwp/PAgYsBskK6PKBTZtKs= +github.com/spin-stack/go-tools v0.20261128.1 h1:05M87G0Yl+W3tegHUAFMQIZbpLd88tH0aMDBTF7eLZQ= +github.com/spin-stack/go-tools v0.20261128.1/go.mod h1:53OPE4ZN80sLk833EXfF/Nwp/PAgYsBskK6PKBTZtKs= github.com/stretchr/objx v0.5.3 h1:jmXUvGomnU1o3W/V5h2VEradbpJDwGrzugQQvL0POH4= github.com/stretchr/objx v0.5.3/go.mod h1:rDQraq+vQZU7Fde9LOZLr8Tax6zZvy4kuNKF+QYS+U0= github.com/stretchr/testify v1.12.1 h1:EuwCh5fleGS7H32xRwO3wRGT7DxrDhLAT6FF8MpWDWE= diff --git a/internal/devtools/command.go b/internal/devtools/command.go index 535bd0c..6b588a6 100644 --- a/internal/devtools/command.go +++ b/internal/devtools/command.go @@ -584,7 +584,7 @@ func refreshTSOracleFiles(root string, oracle func(request []byte) ([]byte, erro fmt.Fprintln(errw, "updated", p) } if check && len(stale) > 0 { - return fmt.Errorf("stale ts-oracle goldens, run `go tool task testdata:ts-oracle`: %s", strings.Join(stale, ", ")) + return fmt.Errorf("stale ts-oracle goldens, run `task testdata:ts-oracle`: %s", strings.Join(stale, ", ")) } fmt.Fprintf(errw, "%d ts-oracle goldens checked\n", len(paths)) return nil diff --git a/internal/exec/exec_test.go b/internal/exec/exec_test.go index 6b4ce7d..f64e87e 100644 --- a/internal/exec/exec_test.go +++ b/internal/exec/exec_test.go @@ -42,7 +42,7 @@ func helperArgs(args []string) []string { } // helperRunner runs this test binary as the helper process. GOCOVERDIR keeps a -// binary built with coverage (as go tool mutate builds it) from warning on the +// binary built with coverage (as mutate builds it) from warning on the // helper's stderr that it has nowhere to write its counters. func helperRunner(t *testing.T, env ...string) OSRunner { return OSRunner{Env: append([]string{ diff --git a/internal/tsoracle/oracletest/oracletest.go b/internal/tsoracle/oracletest/oracletest.go index 4ad2e55..e3442a4 100644 --- a/internal/tsoracle/oracletest/oracletest.go +++ b/internal/tsoracle/oracletest/oracletest.go @@ -57,7 +57,7 @@ func Run(t *testing.T, path string, impls map[string]Func) { } t.Run(cmp.Or(c.Name, c.Fn+"#"+strconv.Itoa(i)), func(t *testing.T) { if c.Result == nil && c.Error == "" { - t.Fatal("no recorded result: run `go tool task testdata:ts-oracle`") + t.Fatal("no recorded result: run `task testdata:ts-oracle`") } if msg := verdict(c, check(impl, c)); msg != "" { t.Error(msg) diff --git a/tools/tsoracle/oracle.ts b/tools/tsoracle/oracle.ts index 97e0359..f0050e1 100644 --- a/tools/tsoracle/oracle.ts +++ b/tools/tsoracle/oracle.ts @@ -5,7 +5,7 @@ // no case result: the process fails, so a golden never records a typo. // // Bundled by build.mjs with reference/'s esbuild; regenerate the goldens with -// `go tool task testdata:ts-oracle` (cmd/devtool ts-oracle). +// `task testdata:ts-oracle` (cmd/devtool ts-oracle). import { URI } from 'vscode-uri'; import { parseVersion, isEarlierVersion, getEntPasswdShellCommand } from '../../reference/src/spec-common/commonUtils'; import { substitute, beforeContainerSubstitute, containerSubstitute } from '../../reference/src/spec-common/variableSubstitution'; diff --git a/versions.yaml b/versions.yaml index 380d04e..bce82a9 100644 --- a/versions.yaml +++ b/versions.yaml @@ -1,5 +1,5 @@ -# Every input this repository pins, written once: `go tool task versions` says what is behind, -# `go tool task bump NAME=` moves one, and internal/devtools/versions_gate_test.go fails on a +# Every input this repository pins, written once: `task versions` says what is behind, +# `task bump NAME=` moves one, and internal/devtools/versions_gate_test.go fails on a # pin written anywhere else. GitHub Actions are pinned by commit in the workflows; Dependabot # moves those, as go.sum is Go's.