cloud-ca / terraform-provider-cloudca

Terraform provider for cloud.ca
https://cloud.ca
MIT License
8 stars 10 forks source link

Stack traces including full path of code on machine used to package release #33

Open simongodard opened 7 years ago

simongodard commented 7 years ago

For example:

2017/02/06 10:50:00 [DEBUG] plugin: terraform-provider-cloudca:     /Users/pdube/development/go/src/github.com/cloud-ca/terraform-provider-cloudca/vendor/github.com/hashicorp/terraform/plugin/resource_provider.go:488 +0x57

This can be changed per this mechanism by using the trim path Go compiler option:

go build -gcflags=-trimpath=$GOPATH -asmflags=-trimpath=$GOPATH
simongodard commented 7 years ago

Most of the local paths are trimmed with the -trimpath option, but some still remain. I'm unsure to why that is.