4e1fe7b43f introduced a Fprintf call that
passes a variable without a formatting directive. This will cause go vet
-printf to fail with

    cmd/pkger/cmds/pack.go:150: no formatting directive in Fprintf call

Drop the variable from the call.
This commit is contained in:
Hannes Gustafsson 2020-02-16 22:05:56 +00:00
parent defb2921c0
commit 9925b6cc05
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ func Package(info here.Info, out string, decls parser.Decls) error {
name = "main" name = "main"
} }
fmt.Fprintf(f, "// Code generated by pkger; DO NOT EDIT.\n\n", name) fmt.Fprintf(f, "// Code generated by pkger; DO NOT EDIT.\n\n")
fmt.Fprintf(f, "package %s\n\n", name) fmt.Fprintf(f, "package %s\n\n", name)
fmt.Fprintf(f, "import (\n\t\"github.com/markbates/pkger\"\n\t") fmt.Fprintf(f, "import (\n\t\"github.com/markbates/pkger\"\n\t")
fmt.Fprintf(f, "\"github.com/markbates/pkger/pkging/mem\"\n)\n\n") fmt.Fprintf(f, "\"github.com/markbates/pkger/pkging/mem\"\n)\n\n")