markbates / pkger

Embed static files in Go binaries (replacement for gobuffalo/packr)
MIT License
1.19k stars 60 forks source link

Not able to ignore the directory which doesn't have any go file for that specific build constraint #139

Open praveenkumar opened 3 years ago

praveenkumar commented 3 years ago

Every command from pkger failed with something like following when there is build specific tags are present.

$ git clone https://github.com/praveenkumar/go-embed-data.git
$ cd go-embed-data
$ pkger list
2020/12/28 16:22:47 exit status 1: package github.com/praveenkumar/go-embed-data/dump_mac: build constraints exclude all Go files in /home/prkumar/work/github/go-embed-data/dump_mac
: here.Dir failed /home/prkumar/work/github/go-embed-data/dump_mac: /home/prkumar/work/github/go-embed-data/dump_mac
Napas commented 3 years ago

As a workaround create an empty go file in the folder without any build tags