Have two modules:
executable
: Executable file which is compiledlibEmbed
: Library where pkger is used to embed a file
My issue:
- Test cases in
/libEmbed
open file and pass without issue. Rungo test ./...
in this module and all tests will pass. - Test cases in
/executable
cannot find the file on the local drive. Rungo test ./...
in this module and all tests will FAIL. - Executable file works just fine. File will be found in executable. Can go into
/build
and run thebuild.sh
script, which will runpkger
and create thepkged.go
, and build an executable calledmain
in the same directory.
Suspected Cause:
- When loading items in dev environment, pkger is using the
/executabe
module name in the development environment for some reason, instead of the module in which the function executing lives.