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

Commit 1e76ca4

Browse files
committedNov 5, 2019
hack/make/.go-autogen: fix "generated code" comment not in correct format
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 <[email protected]> Upstream-commit: 6186e9fe8794660d669f19a2e2ba7127321b817f Component: engine
1 parent 4104376 commit 1e76ca4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎components/engine/hack/make/.go-autogen

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const (
2424
DefaultProductLicense string = "${DEFAULT_PRODUCT_LICENSE}"
2525
)
2626
27-
// AUTOGENERATED FILE; see /go/src/github.com/docker/docker/hack/make/.go-autogen
27+
// Code generated by hack/make/.go-autogen. DO NOT EDIT.
2828
DVEOF
2929

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

4545
# Compile the Windows resources into the sources

0 commit comments

Comments
 (0)
This repository has been archived.