From 9534e89c796edb8b7c0e8197c7e4ddca149d9526 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 29 Jul 2020 12:53:57 +0200 Subject: 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. --- pkg/build/linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/build/linux.go') 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" -- cgit mrf-deployment