Skip to content

fmt: fix formatting for imports of submodule from module src dir - #21060

Merged
spytheman merged 3 commits into
vlang:masterfrom
ttytm:fmt/fix-submodule-imports-from-src
Mar 19, 2024
Merged

spytheman merged 3 commits into
vlang:masterfrom
ttytm:fmt/fix-submodule-imports-from-src

Conversation

@ttytm

@ttytm ttytm commented Mar 19, 2024

Copy link
Copy Markdown
Member

Resolves #19799

With the linked PR vfmt won't break the import anymore. I think, since it's a working import it's okay when fmt just keeps it for now. Eventually we can check if a module placed in the src dir of a parent module is recognize when importing it without the src dir like import artemkakun.textproc.punctuation and let vfmt do the job of removing the src. part - currently, the module would not be found.

@spytheman spytheman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Excellent work.

@spytheman
spytheman merged commit d3d1bc0 into vlang:master Mar 19, 2024
@ttytm
ttytm deleted the fmt/fix-submodule-imports-from-src branch March 19, 2024 11:40
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.

fmt breaks strange module import

2 participants