Skip to content

Dynamically fetch the package name for single import strings #3245

Description

@mrmelon54

What do you want to change?

This will fix issues with the single import string not chosing the correct package name

Example:

github.com/disgoorg/snowflake/v2.ID

This incorrectly produces v2.ID in the model when I would expect snowflake.ID

What database engines need to be changed?

No response

What programming language backends need to be changed?

Go

Activity

  1. added
    enhancementNew feature or request
    triageNew issues that hasn't been reviewed
    on Mar 5, 2024
  2. mrmelon54 commented on Mar 5, 2024

    @mrmelon54
    Author

    #3246 Small fix using some existing code

  3. tw1nk commented on Apr 29, 2024

    @tw1nk

    I had the same issue with github.com/oklog/ulid/v2
    I solved it by having a local ulidx package with a type alias.

    package ulidx
    
    import "github.com/oklog/ulid/v2"
    
    type ULID = ulid.ULID
  4. removed
    triageNew issues that hasn't been reviewed
    on Aug 5, 2024
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

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions