diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2020-07-29 12:53:57 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-07-29 12:55:55 +0200 |
| commit | 9534e89c796edb8b7c0e8197c7e4ddca149d9526 (patch) | |
| tree | 92cf20337bc404903b716e3d0a969f87e59f3c11 /pkg/build/linux.go | |
| parent | 8ab0cf5b552a911e8033be38f8dcc265155059df (diff) | |
all: mark auto-generated files
Use the standard Go convention for Go files:
https://golang.org/pkg/cmd/go/internal/generate
Use github linguish for other files:
https://github.com/github/linguist#generated-code
Both are understood by github and should result
in these files being collapsed in PRs by default.
Diffstat (limited to 'pkg/build/linux.go')
| -rw-r--r-- | pkg/build/linux.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/build/linux.go b/pkg/build/linux.go index a5f74db49..6907310d9 100644 --- a/pkg/build/linux.go +++ b/pkg/build/linux.go @@ -1,7 +1,7 @@ // Copyright 2017 syzkaller project authors. All rights reserved. // Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. -//go:generate bash -c "echo -en '// AUTOGENERATED FILE\n\n' > linux_generated.go" +//go:generate bash -c "echo -en '// Code generated by pkg/build/linux.go. DO NOT EDIT.\n\n' > linux_generated.go" //go:generate bash -c "echo -en 'package build\n\n' >> linux_generated.go" //go:generate bash -c "echo -en 'const createImageScript = `#!/bin/bash\n' >> linux_generated.go" //go:generate bash -c "cat ../../tools/create-gce-image.sh | grep -v '#' >> linux_generated.go" |
