Skip to content

go-yit moving to "go.yaml.in/yaml/v3" breaks oapi-codegen #2015

Closed

Description

@dfioravanti

Hey everyone, this is more an FYI than anything since I do not know if you can do something about. As I reported dprotaso/go-yit#9 go-yit moved from gopkg.in/yaml.v3 to go.yaml.in/yaml/v3 and it broke https://github.com/vmware-labs/yaml-jsonpath which indirectly broke you.

Activity

  1. AlexanderShelyugov commented on Jul 3, 2025

    @AlexanderShelyugov

    Same. The only hack and workaround that somewhat works is to:

    1. install oapi-codegen as a binary + make sure it's visible in PATH
    2. use generation directive as //go:generate oapi-codegen -config .....

    And it's not looking good. Hopefully, the maintainers will fix it soon.

  2. dfioravanti commented on Jul 3, 2025

    @dfioravanti
    Author

    @AlexanderShelyugov to fix it you can use the replace directive to point to a older version of go-yit. It works for me

  3. AlexanderShelyugov commented on Jul 3, 2025

    @AlexanderShelyugov

    @AlexanderShelyugov to fix it you can use the replace directive to point to a older version of go-yit. It works for me

    Good idea. Thanks!

  4. AlexanderShelyugov commented on Jul 3, 2025

    @AlexanderShelyugov

    @AlexanderShelyugov to fix it you can use the replace directive to point to a older version of go-yit. It works for me

    Can confirm, that workaround

    #in go.mod
    
    replace github.com/dprotaso/go-yit v0.0.0-20250617014309-d9cfd875a529 => github.com/dprotaso/go-yit v0.0.0-20250513224043-18a80f8f6df4
    

    have worked. v0.0.0-20250617014309-d9cfd875a529 is the version of go-yit I had.

    Hopefully, the issue will be fixed later on.

  5. added this to the v2.5.0 milestone on Jul 15, 2025
  6. jamietanna commented on Jul 15, 2025

    @jamietanna
    Member

    Thanks for the head's up 🙇

  7. modified the milestones: v2.5.0, v2.6.0 on Jul 15, 2025
  8. philipbel commented on Jul 21, 2025

    @philipbel

    There seems to be an open PR to remove go-yit from yaml-jsonpath, but it's stale (since March 2025) 🙁

    Thanks @dfioravanti for the workaround, it works! ❤️

  9. mromaszewicz commented on Apr 29, 2026

    @mromaszewicz
    Member

    I think that vmware-labs/yaml-jsonpath is basically dead. Last commit was 3 years ago.

    We only need this for the overlay functionality. Maybe there's an alternative way to do it.

  10. mromaszewicz commented on May 1, 2026

    @mromaszewicz
    Member

    Thank you for pointing this out. I've referenced this Issue in the release notes for v2.7.0. All we can do here is document and pin our own usage under /examples and /internal/test to working versions. I'm closing this issue since there's not much else we can do.

  11. gaiaz-iusipov commented on Sep 8, 2026

    @gaiaz-iusipov
    Contributor

    Better workaround:

    replace github.com/vmware-labs/yaml-jsonpath => github.com/hazzik/yaml-jsonpath v0.3.3
    
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