Skip to content
This repository has been archived by the owner on Aug 22, 2022. It is now read-only.

Commit

Permalink
Merge pull request #82 from xDuck/master
Browse files Browse the repository at this point in the history
Add conditional build tag to generated files
  • Loading branch information
markbates authored Apr 3, 2020
2 parents 8554e69 + 3c88c54 commit c028e66
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/pkger/cmds/pack.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit c028e66

Please sign in to comment.