Skip to content
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

Allow make dev to build only one component #3229

Closed
dlsniper opened this issue Sep 13, 2015 · 3 comments
Closed

Allow make dev to build only one component #3229

dlsniper opened this issue Sep 13, 2015 · 3 comments

Comments

@dlsniper
Copy link
Contributor

Hi, while working on #3062 I've realized that I'm spending about 1.5 minutes to build all the Terraform components. Would there be any issues into having an option to build a certain component?
What I have in mind is something like make dev provider-aws.

Thank you.

@apparentlymart
Copy link
Contributor

I've been doing this with the following rather-awkward construction:

go install github.com/hashicorp/terraform/builtin/bins/provider-aws && mv $GOPATH/bin/provider-aws $GOPATH/bin/terraform-provider-aws

Many moons ago I looked at making something like make dev PLUGINS="provider-aws provider-rundeck" but got stuck down a rathole learning about how gox works. However, maybe it would be simpler to just change scripts/build.sh to look for the PLUGINS variable and just run something like what I quoted above instead of using gox at all, since gox isn't really important when you're only building for the host architecture anyway.

@apparentlymart
Copy link
Contributor

In 3af5552 I added a way to do this, slightly different to what we discussed before:

make plugin-dev PLUGIN=provider-aws

Rather than complicating the existing dev and quickdev targets further, I just made a separate target that just runs basically the thing I mentioned in my earlier comment. There's no advantage to using gox when building a single package for just the host architecture.

@ghost
Copy link

ghost commented Apr 30, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants