go.rice: Fails to locate box when cross-compiling in go 1.5
When cross compiling using go 1.5 the resultant binary fails with:
panic: could not locate box "../assets/templates"
goroutine 1 [running]:
github.com/GeertJohan/go%2erice.MustFindBox(0x820abdfc0, 0x13, 0x9)
/go/src/github.com/GeertJohan/go.rice/box.go:110 +0x9a
This is true for multiple target architectures. I’ve verified that it works fine when compiling natively on multiple targets.
I’m using commit ada95a01c963696fb73320ee662195af68be81ae of this repository; this is the tip of master branch.
I’m cross compiling with e.g. GOOS=linux GOARCH=arm GOARM=7 go build main.go
Do you know what would be different about cross compiling vs compiling natively?
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 24 (13 by maintainers)
Isn’t generating the go source files with
rice embed-gosupposed to include the resources directly in the binary when compiling without appending after ?