build: use canonical generator module - #2115
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
openapi-generation-nexthas been renamed to the canonicalopenapi-generationrepository 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
openapi-generation/v2→openapi-generation-next/v2replace directive.v2.930.1tov2.932.0.go mod tidy.scripts/upgrade.bashso future generator upgrades always read from and update the canonical repository/module.Testing
go mod tidy -diffgo test ./internal/sdkgen/... ./internal/validation/...bash -n scripts/upgrade.bashgo list -m -json github.com/speakeasy-api/openapi-generation/v2resolvesv2.932.0github.com/speakeasy-api/openapi-generation/v2Summary by cubic
Switches the OpenAPI generator to the canonical
github.com/speakeasy-api/openapi-generation/v2and updates callers to the new version report capture API. Old behavior: the CLI used areplacetogithub.com/speakeasy-api/openapi-generation-next/v2and consumedMergedVersionReportdirectly. New behavior: the CLI depends on the canonical module atv2.932.0and consumesVersionReportCapturevia.V1. Build behavior remains unchanged.replacedirective mappinggithub.com/speakeasy-api/openapi-generation/v2togithub.com/speakeasy-api/openapi-generation-next/v2; bumps tov2.932.0and runsgo mod tidy(refreshes transitive versions).scripts/upgrade.bashto always read releases fromspeakeasy-api/openapi-generation; drops-nextlogic.versioning.WithVersionReportCaptureusage ininternal/ci/run/run.goandintegration/workflow_test.goto handleVersionReportCaptureand read reports from.V1.No migration required for users.
Written for commit 52abf6b. Summary will update on new commits.