Skip to content

build: use canonical generator module - #2115

Merged
TristanSpeakEasy merged 2 commits into
mainfrom
build/use-canonical-openapi-generation
Aug 17, 2026
Merged

build: use canonical generator module#2115
TristanSpeakEasy merged 2 commits into
mainfrom
build/use-canonical-openapi-generation

Conversation

@TristanSpeakEasy

@TristanSpeakEasy TristanSpeakEasy commented Aug 17, 2026

Copy link
Copy Markdown
Member

Why

openapi-generation-next has been renamed to the canonical openapi-generation repository after its history was squashed for open source publication. The CLI no longer needs to redirect the canonical module path to the temporary repository.

What changed

  • Remove the openapi-generation/v2openapi-generation-next/v2 replace directive.
  • Upgrade the canonical generator dependency from v2.930.1 to v2.932.0.
  • Apply the required transitive dependency metadata from go mod tidy.
  • Simplify scripts/upgrade.bash so future generator upgrades always read from and update the canonical repository/module.

Testing

  • go mod tidy -diff
  • go test ./internal/sdkgen/... ./internal/validation/...
  • bash -n scripts/upgrade.bash
  • go list -m -json github.com/speakeasy-api/openapi-generation/v2 resolves v2.932.0
  • Confirmed there is no replacement for github.com/speakeasy-api/openapi-generation/v2

Summary by cubic

Switches the OpenAPI generator to the canonical github.com/speakeasy-api/openapi-generation/v2 and updates callers to the new version report capture API. Old behavior: the CLI used a replace to github.com/speakeasy-api/openapi-generation-next/v2 and consumed MergedVersionReport directly. New behavior: the CLI depends on the canonical module at v2.932.0 and consumes VersionReportCapture via .V1. Build behavior remains unchanged.

  • Removes the replace directive mapping github.com/speakeasy-api/openapi-generation/v2 to github.com/speakeasy-api/openapi-generation-next/v2; bumps to v2.932.0 and runs go mod tidy (refreshes transitive versions).
  • Simplifies scripts/upgrade.bash to always read releases from speakeasy-api/openapi-generation; drops -next logic.
  • Adapts versioning.WithVersionReportCapture usage in internal/ci/run/run.go and integration/workflow_test.go to handle VersionReportCapture and read reports from .V1.

No migration required for users.

Written for commit 52abf6b. Summary will update on new commits.

Review in cubic

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 3 files

Re-trigger cubic

@TristanSpeakEasy
TristanSpeakEasy merged commit 64bc4c2 into main Aug 17, 2026
6 checks passed
@TristanSpeakEasy
TristanSpeakEasy deleted the build/use-canonical-openapi-generation branch August 17, 2026 04:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant