-
Notifications
You must be signed in to change notification settings - Fork 752
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
src/goTest: Use more robust method to find module name in go.mod #2172
Conversation
The previous method found the name only if it appeared on the first line. However, it is legal for comments to precede the line with the module name.
This PR (HEAD: a4774b9) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/vscode-go/+/399074 to see it. Tip: You can toggle comments from me using the |
FYI, I also entertained finding the name by calling |
Message from Gopher Robot: Patch Set 1: Congratulations on opening your first change. Thank you for your contribution! Next steps: Most changes in the Go project go through a few rounds of revision. This can be Please don’t reply on this GitHub thread. Visit golang.org/cl/399074. |
Message from Hyang-Ah Hana Kim: Patch Set 1: Run-TryBot+1 (4 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/399074. |
Message from kokoro: Patch Set 1: Kokoro presubmit build starting for golang/vscode-go/gcp_ubuntu/presubmit Please don’t reply on this GitHub thread. Visit golang.org/cl/399074. |
Message from kokoro: Patch Set 1: TryBot-Result+1 Kokoro presubmit build finished with status: SUCCESS Please don’t reply on this GitHub thread. Visit golang.org/cl/399074. |
Remove duplicate constant
Fix typo and wording in comment decribing a constant
Message from Daniel Lipovetsky: Patch Set 1: (4 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/399074. |
This PR (HEAD: 389f39a) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/vscode-go/+/399074 to see it. Tip: You can toggle comments from me using the |
Message from Daniel Lipovetsky: Patch Set 2: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/399074. |
Message from Hyang-Ah Hana Kim: Patch Set 2: Run-TryBot+1 Auto-Submit+1 Code-Review+2 Trust+1 (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/399074. |
Message from kokoro: Patch Set 2: Kokoro presubmit build starting for golang/vscode-go/gcp_ubuntu/presubmit Please don’t reply on this GitHub thread. Visit golang.org/cl/399074. |
Message from Hyang-Ah Hana Kim: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/399074. |
Message from kokoro: Patch Set 2: TryBot-Result+1 Kokoro presubmit build finished with status: SUCCESS Please don’t reply on this GitHub thread. Visit golang.org/cl/399074. |
Message from Daniel Lipovetsky: Patch Set 3: (3 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/399074. |
The previous method found the name only if it appeared on the first line. However, it is legal for comments to precede the line with the module name. The first commit is a failing integration test, and the second commit is the fix. Fixes #2171 Change-Id: Iafc6ad7b02061ba57994d194ec2a68ec755caeeb GitHub-Last-Rev: 389f39a GitHub-Pull-Request: #2172 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/399074 Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com> Trust: Hyang-Ah Hana Kim <hyangah@gmail.com> Trust: Suzy Mueller <suzmue@golang.org> Reviewed-by: Robert Findley <rfindley@google.com>
This PR is being closed because golang.org/cl/399074 has been merged. |
The previous method found the name only if it appeared on the first line. However, it is legal for comments to precede the line with the module name.
The first commit is a failing integration test, and the second commit is the fix.
Fixes #2171