Skip to content
This repository was archived by the owner on May 9, 2021. It is now read-only.
This repository was archived by the owner on May 9, 2021. It is now read-only.

go:embed gives false positives about comment format #503

@howardjohn

Description

@howardjohn

Source:

var (
        //go:embed charts/* profiles/*
        //go:embed charts/gateways/istio-egress/templates/_affinity.tpl
        //go:embed charts/gateways/istio-egress/templates/_helpers.tpl
        //go:embed charts/gateways/istio-ingress/templates/_affinity.tpl
        FS embed.FS
)

Execution:

$ go version
go version go1.16beta1 linux/amd64
$ go install golang.org/x/lint/golint@master
$ golint ./manifests/...
manifests/manifest.go:24:2: comment on exported var FS should be of the form "FS ..."

I would expect this to not require a comment starting with FS since I am not trying to write a comment with go:embed, but rather compiler instructions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions