Have two modules:
executable: Executable file which is compiledlibEmbed: Library where pkger is used to embed a file
My issue:
- Test cases in
/libEmbedopen file and pass without issue. Rungo test ./...in this module and all tests will pass. - Test cases in
/executablecannot 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
/buildand run thebuild.shscript, which will runpkgerand create thepkged.go, and build an executable calledmainin the same directory.
Suspected Cause:
- When loading items in dev environment, pkger is using the
/executabemodule name in the development environment for some reason, instead of the module in which the function executing lives.