Skip to content

feat: support trailing line comment for mage:import#480

Merged
natefinch merged 1 commit into
magefile:masterfrom
anuraaga:mage-import-trailing
Sep 12, 2023
Merged

feat: support trailing line comment for mage:import#480
natefinch merged 1 commit into
magefile:masterfrom
anuraaga:mage-import-trailing

Conversation

@anuraaga
Copy link
Copy Markdown
Contributor

@anuraaga anuraaga commented Sep 6, 2023

Currently, //mage:import is only read from leading doc comments for an import statement, not trailing line comments. This makes it incompatible with tools like gosimports. It seems reasonable to support line comments too and is luckily not difficult

@anuraaga
Copy link
Copy Markdown
Contributor Author

anuraaga commented Sep 8, 2023

@natefinch or anyone wondering if you'll get a chance to review this PR? I noticed many PRs haven't had any comments for some months so perhaps this project is unmaintained now - it happens, but hoping to be able to confirm it. Thanks.

Copy link
Copy Markdown
Member

@natefinch natefinch left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@anuraaga
Copy link
Copy Markdown
Contributor Author

Thanks a lot @natefinch! Just wondering if there's anything left to do to merge. Cheers

@natefinch natefinch merged commit 9f54e0f into magefile:master Sep 12, 2023
@natefinch
Copy link
Copy Markdown
Member

Nope! I guess I forgot to hit the button:)

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.

2 participants