diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2020-09-15 18:17:20 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-09-15 19:34:30 +0200 |
| commit | c478111a98a390319c7af0b6784df9fa700840bc (patch) | |
| tree | 96266efc4fe45a51ea6b771ab32e9cff4382e733 /pkg/build/linux.go | |
| parent | 2d37b9667e60ae1270304f660cb7c7883626255e (diff) | |
pkg/build, pkg/html: move generation logic into separate scripts
Mentions of "// Code generated ... DO NOT EDIT." in these Go files
somehow prevents golangci-lint from checking them.
And github treats them as auto-generated as well.
I guess some code somewhere has some imprecise heuristics.
Move generation into separate shell scripts. Also cleaner.
Diffstat (limited to 'pkg/build/linux.go')
| -rw-r--r-- | pkg/build/linux.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/pkg/build/linux.go b/pkg/build/linux.go index 5bc68bef9..34a980b20 100644 --- a/pkg/build/linux.go +++ b/pkg/build/linux.go @@ -1,11 +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 '// 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" -//go:generate bash -c "echo -en '`\n\n' >> linux_generated.go" +//go:generate ./linux_gen.sh package build |
