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

cmd/vet: handle embedded fields in structtags check #8205

Open
josharian opened this issue Jun 14, 2014 · 3 comments
Open

cmd/vet: handle embedded fields in structtags check #8205

josharian opened this issue Jun 14, 2014 · 3 comments
Labels
Analysis Issues related to static analysis (vet, x/tools/go/analysis)
Milestone

Comments

@josharian
Copy link
Contributor

The change at https://code.google.com/p/go/source/detail?r=dfa149f4c2fc&;repo=tools
may need to be updated after issue #7363 is resolved.

Marking Go1.4 to match issue #7363.
@rsc
Copy link
Contributor

rsc commented Sep 15, 2014

Comment 1:

Labels changed: added release-go1.5, removed release-go1.4.

@bradfitz bradfitz modified the milestone: Go1.5 Dec 16, 2014
@rsc rsc removed accepted labels Apr 14, 2015
@rsc rsc changed the title cmd/vet: update structtags check after issue 7363 is resolved x/tools/cmd/vet: update structtags check after issue 7363 is resolved Apr 14, 2015
@rsc rsc modified the milestones: Unreleased, Go1.5 Apr 14, 2015
@rsc rsc removed the repo-tools label Apr 14, 2015
@dominikh
Copy link
Member

What's the status of this issue? The two referenced issues are closed and Go 1.4 has long passed.

@ianlancetaylor
Copy link
Contributor

The change that @josharian is referring to is https://golang.org/cl/91010047 (this is why you should also use CL numbers, not specific revision references).

As far as I can see nothing has changed, and this issue has not been addressed. Currently the test ignores embedded types. It should probably walk through the fields of embedded types recursively.

@ianlancetaylor ianlancetaylor changed the title x/tools/cmd/vet: update structtags check after issue 7363 is resolved cmd/vet: update structtags check for issue 7363 Nov 29, 2016
@ianlancetaylor ianlancetaylor modified the milestones: Go1.9, Unreleased Nov 29, 2016
@rsc rsc changed the title cmd/vet: update structtags check for issue 7363 cmd/vet: handle embedded fields in structtags check Jun 22, 2017
@rsc rsc modified the milestones: Go1.10, Go1.9 Jun 22, 2017
@rsc rsc modified the milestones: Go1.10, Go1.11 Nov 22, 2017
@gopherbot gopherbot modified the milestones: Go1.11, Unplanned May 23, 2018
@adonovan adonovan added the Analysis Issues related to static analysis (vet, x/tools/go/analysis) label Apr 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Analysis Issues related to static analysis (vet, x/tools/go/analysis)
Projects
None yet
Development

No branches or pull requests

7 participants