Skip to content

cmd/vet: incorrect detection of +build tag even if it appears as a string in a file #26627

Closed
@andybons

Description

@andybons

Sometimes you may want to write a test that contains code with a build tag.

Example: https://go-review.googlesource.com/c/tools/+/125040

But it will fail to build due to the build tag in the test file.

@bcmills @rsc

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions