Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@crossworth
Copy link
Contributor

Hello, was reported in Discord 1, 2, that it's not possible to use github.com/oklog/ulid/v2 as a UUID type.

The example using ent/bug worked correctly, but after updating to the latest version a problem with duplicated imports (one with the alias and the other without) occurs.

This seems related to #2765 (could not test it).

Any way this PR tries to solve this problem, it also adds a test for the problem of #2761 to ensure we don't get a regression.

NOTE:

  • Maybe is possible to create an action that updates ent/bug to use the latest version of Ent.
  • The only reason I created the entgen folder is to be able to debug the code, let me know if I should remove it.

@crossworth
Copy link
Contributor Author

crossworth commented Sep 13, 2022

It seems I'm having trouble with the generate command, it's adding new lines on my side I guess.

Copy link
Collaborator

@giautm giautm left a comment

Choose a reason for hiding this comment

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

Tested with my reproduce the bug. It removes the duplicate import.

giautm/ent-bug-ulid@7dd0352

Copy link
Member

@a8m a8m left a comment

Choose a reason for hiding this comment

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

💯

Looks good. See @giautm’s comment.

@a8m a8m merged commit 1f8e4ad into ent:master Sep 18, 2022
@a8m
Copy link
Member

a8m commented Sep 18, 2022

Thanks, @crossworth ❤️🙏🏻

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.

3 participants