Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Commit

Permalink
hack/make/.go-autogen: fix "generated code" comment not in correct fo…
Browse files Browse the repository at this point in the history
…rmat

As described in https://golang.org/s/generatedcode, Go has
a formalized format that should be used to indicate that a
file is generated.

Matching that format helps linters to skip generated files;

From https://golang.org/s/generatedcode (golang/go#13560 (comment));

> Generated files are marked by a line of text that matches the regular expression, in Go syntax:
>
> ^// Code generated .* DO NOT EDIT\.$
>
> The `.*` means the tool can put whatever folderol it wants in there, but the comment
> must be a single line and must start with `Code generated` and end with `DO NOT EDIT.`,
> with a period.
>
> The text may appear anywhere in the file.

This patch updates the autogenerated code to match that format.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: 6186e9fe8794660d669f19a2e2ba7127321b817f
Component: engine
  • Loading branch information
thaJeztah committed Nov 5, 2019
1 parent 4104376 commit 1e76ca4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/engine/hack/make/.go-autogen
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const (
DefaultProductLicense string = "${DEFAULT_PRODUCT_LICENSE}"
)
// AUTOGENERATED FILE; see /go/src/github.com/docker/docker/hack/make/.go-autogen
// Code generated by hack/make/.go-autogen. DO NOT EDIT.
DVEOF

cat > dockerversion/version_autogen_unix.go <<DVEOF
Expand All @@ -39,7 +39,7 @@ const (
InitCommitID string = "${TINI_COMMIT}"
)
// AUTOGENERATED FILE; see /go/src/github.com/docker/docker/hack/make/.go-autogen
// Code generated by hack/make/.go-autogen. DO NOT EDIT.
DVEOF

# Compile the Windows resources into the sources
Expand Down

0 comments on commit 1e76ca4

Please sign in to comment.