iterative / terraform-provider-iterative

☁️ Terraform plugin for machine learning workloads: spot instance recovery & auto-termination | AWS, GCP, Azure, Kubernetes
https://registry.terraform.io/providers/iterative/iterative/latest/docs
Apache License 2.0
289 stars 27 forks source link

Support paths with spaces when using make #748

Closed ludelafo closed 1 year ago

ludelafo commented 1 year ago

I had issues when using make with paths containing spaces. This PR fixes this.

Examples in the Dev Container configuration:

$ make leo
CGO_ENABLED=0 \
        go build -ldflags="-s -w -X terraform-provider-iterative/iterative/utils.Version=0.0.1680607982+development" \
        -o /workspaces/509.20.06 terraform-provider-iterative/leo \
        /workspaces/509.20.06 terraform-provider-iterative/cmd/leo
package terraform-provider-iterative/leo is not in GOROOT (/usr/local/go/src/terraform-provider-iterative/leo)
stat /workspaces/509.20.06: directory not found
make: *** [Makefile:29: leo] Error 1
$ make tpi
CGO_ENABLED=0 \
        go build -ldflags="-s -w -X terraform-provider-iterative/iterative/utils.Version=0.0.1680608415+development" \
        -o /workspaces/509.20.06 terraform-provider-iterative/terraform-provider-iterative \
        ""/workspaces/509.20.06 terraform-provider-iterative""
package terraform-provider-iterative/terraform-provider-iterative is not in GOROOT (/usr/local/go/src/terraform-provider-iterative/terraform-provider-iterative)
no Go files in /workspaces/509.20.06
make: *** [Makefile:23: tpi] Error 1