Skip to content

Support paths with spaces when using make #748

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 5, 2023
Merged

Support paths with spaces when using make #748

merged 1 commit into from
Apr 5, 2023

Conversation

ludelafo
Copy link
Contributor

@ludelafo ludelafo commented Apr 4, 2023

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

@dacbd dacbd merged commit 9288461 into iterative:main Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants