I'm currently creating private Terraform provider that is required to make calls to external binary (PEX file) via exec.Command
If make very short example:
func resourceCreate(d *schema.ResourceData, m interface{}) error {
...
cmd := exec.Command("./custom-pex-file", arg...)
...
}
I'm wondering what is correct and easy way to build-in this custom PEX file in final binary that would be compiled by go compiler.