Skip to content

Import error (following speakeasy-api/jsonpath update) #2230

Closed

Description

@netixx

Hello,

I am getting the following error while doing go mod tidy

        github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen imports
        github.com/oapi-codegen/oapi-codegen/v2/pkg/util imports
        github.com/speakeasy-api/openapi-overlay/pkg/loader imports
        github.com/speakeasy-api/openapi-overlay/pkg/overlay tested by
        github.com/speakeasy-api/openapi-overlay/pkg/overlay.test imports
        github.com/speakeasy-api/jsonpath/pkg/overlay: module github.com/speakeasy-api/jsonpath@latest found (v0.6.3), but does not contain package github.com/speakeasy-api/jsonpath/pkg/overlay

I think this is due to the import path of github.com/speakeasy-api/jsonpath/pkg/overlay that has changed in https://github.com/speakeasy-api/jsonpath/releases/tag/v0.6.3:

refactor: replace local overlay package with speakeasy-api/openapi/overlay by @TristanSpeakEasy in speakeasy-api/jsonpath#24

Activity

  1. jamietanna commented on Feb 26, 2026

    @jamietanna
    Member

    To confirm, what version of the Speakeasy library are you using? go.mod in full would also be appreciated

  2. HoesJ commented on Feb 26, 2026

    @HoesJ

    Hello,

    I have the same error. Here are some verions from go.mod:

    github.com/oapi-codegen/oapi-codegen/v2 v2.5.1
    github.com/oapi-codegen/runtime v1.1.2
    github.com/speakeasy-api/jsonpath v0.6.3 // indirect
    github.com/speakeasy-api/openapi-overlay v0.10.3 // indirect

  3. added this to the v2.7.0 milestone on Feb 27, 2026
  4. mromaszewicz commented on Feb 28, 2026

    @mromaszewicz
    Member

    speakeasy-api/openapi/overlay did a bad thing, removing functions in a maintenance release, so it breaks go module semantics.

  5. mromaszewicz commented on Feb 28, 2026

    @mromaszewicz
    Member

    All we can do is pin ourselves to jsonpath version 0.6.0 and wait for openapi-overlay to update their code for the new jsonpath behavior. This is a transitive import issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions