diff --git a/cmd/pkger/cmds/pack.go b/cmd/pkger/cmds/pack.go index 7973e54..5b5f226 100644 --- a/cmd/pkger/cmds/pack.go +++ b/cmd/pkger/cmds/pack.go @@ -143,6 +143,7 @@ func Package(info here.Info, out string, decls parser.Decls) error { defer f.Close() fmt.Fprintf(f, "// Code generated by pkger; DO NOT EDIT.\n\n") + fmt.Fprintf(f, "// +build !skippkger\n\n") fmt.Fprintf(f, "package %s\n\n", c.Name) fmt.Fprintf(f, "import (\n\t\"github.com/markbates/pkger\"\n\t") fmt.Fprintf(f, "\"github.com/markbates/pkger/pkging/mem\"\n)\n\n")