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

How to contribute and build on Windows ? #8361

Closed
BerndWessels opened this issue Aug 22, 2016 · 3 comments
Closed

How to contribute and build on Windows ? #8361

BerndWessels opened this issue Aug 22, 2016 · 3 comments
Labels
build Auto-pinning question

Comments

@BerndWessels
Copy link

Hi there,

I'd like to contribute to terraform and build some AWS resources like Cognito which are not supported yet by terraform.

But I just can't get it to build on Windows. I followed the few instructions available but then

nmake fails with illegal character '?' in macro

cygwin make fails with gofmtcheck.sh: line 2: $'\r': command not found

How do you guys build on Windows (build the Windows executable)?

Terraform Version

master

@jen20 jen20 added build Auto-pinning question labels Aug 22, 2016
@jen20
Copy link
Contributor

jen20 commented Aug 22, 2016

Hi @BerndWessels! Thanks for opening an issue, and considering making contributions! Right now the story for building on Windows is pretty much non-existent - everyone on the Terraform team is a *nix user of various persuasions. The released Windows binaries are cross-compiled using the (excellent) native support which has been present since Go 1.5.

By far the easiest way right now to work on Terraform on Windows is to use a virtual machine running under Vagrant, using the supplied Vagrantfile which will bring up an Ubuntu 14.04 machine with all the necessary tools. Depending on how far the new Linux system call emulation has progressed on Windows 10 that may be another option. It might also be possible to build Terraform on Windows using various combinations of go build - it should be possible to put together the correct set by reading through the Makefile.

If you manage to fix up the Makefile to work with Cygwin or msys-supplied Make, we'll be happy to merge any necessary changes provided they don't break building on other operating systems.

@jen20 jen20 closed this as completed Aug 22, 2016
@trung
Copy link
Contributor

trung commented Jul 25, 2017

I made an attempt but until golang/go#18468 got fixed, I won't be able to proceed

@ghost
Copy link

ghost commented Apr 8, 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 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
build Auto-pinning question
Projects
None yet
Development

No branches or pull requests

3 participants