Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepend line directive to copied source files and add test #10

Merged
merged 7 commits into from
Mar 1, 2024

Conversation

k1LoW
Copy link
Collaborator

@k1LoW k1LoW commented Sep 26, 2023

Hi @tenntenn and @usatie!

I tried to go ahead with the implementation to append the line directive.

Added a simple test and also responded to @tenntenn's suggestion.

I look forward to gostaticanalysis/testutil being further refined 🚀

path string
want string
}{
{filepath.Join(testdata, "src", "a", "a.go"), "//line src/a/a.go:1"},
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The difference from #9 is that the path is not absolute (does not have / prefix).

@k1LoW
Copy link
Collaborator Author

k1LoW commented Oct 3, 2023

I finished implementing what I wanted to accomplish with this pull request.

@k1LoW
Copy link
Collaborator Author

k1LoW commented Oct 24, 2023

@tenntenn
Is there anything else I need to do to merge these changes?

@@ -0,0 +1,3 @@
module a

go 1.21
Copy link
Member

Choose a reason for hiding this comment

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

go 1.21と書くとgo 1.21rc2が含まれてしまうので、go 1.21.0の方が良いかもです。

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@tenntenn
ありがとうございます!修正しました!

Copy link
Member

@tenntenn tenntenn left a comment

Choose a reason for hiding this comment

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

LGTM

@tenntenn tenntenn merged commit 6b80891 into gostaticanalysis:main Mar 1, 2024
@k1LoW k1LoW deleted the use-line-directive branch March 1, 2024 02:56
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