gobuffalo / packr

The simple and easy way to embed static files into Go binaries.
MIT License
3.41k stars 196 forks source link

File Not Found After Compiling #230

Open l0gicgate opened 5 years ago

l0gicgate commented 5 years ago

Go Version: 1.12.6

Problem: I have two packages:

package-a is the main application and imports package-b functionality. package-b has the static assets.

I compile my application this way:

packr build -o $GOPATH/bin/package-a ./main.go

After building it, there are seemingly no artifacts from packr to be found from within package-a and everything compiles fine but the boxes are not found.

What am I doing wrong? Is packr supposed to recursively generate artifacts for all imported libraries?

eyasliu commented 5 years ago

+1 same problem, but when I switched to v1.26.0, it's work.