-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
Cannot build Terraform because of git.apache.org downtime #22664
Comments
@chreble you can get it to build adding this line to the go.mod:
This works if you're building a provider as my case, you can probably run a command beforehand to force it to replace before building. |
I'm not building |
The usual way to build Terraform is to use The official packages we distribute contain pre-built binaries, so building from source is not a primary usage pattern. We will fix the dependency in due course in order to unblock our own development, but if Homebrew is building its own binaries from source then would be best to make it use The Terraform Core team is not working today due to the US Labor Day holiday so unfortunately this won't be addressed on our end until tomorrow at least. If you are being blocked by this today, please consider using the official releases for the moment. |
That's what I did, thanks @apparentlymart 👍 |
@apparentlymart This issue also affects provider development so I'm guessing it's going to start blocking some official providers soon. |
If you are working in a repository that doesn't already have that dependency vendored then you can also try using the Go public module proxy, and see if it has that library cached. Protecting against this "vanishing dependency" problem is a key goal of that proxy, and it will be on by default in Go 1.13. You can optionally enable it in 0.12 though whether that dependency is cached there will depend on whether someone else previously enabled the proxy and then built a module that depended on that one, which I'm not sure about and can't test because I'm not at a computer right now. |
I'm just trying to install Terrafrom using brew; the error brought me here... brew install terraform READ THIS: https://docs.brew.sh/Troubleshooting |
I am trying to build the terraform-provider-aws and I am suffering from a connection refused too. Not sure if @next-joaquinfernandezcampo comment is a work-around, or I'm missing what to change. |
git.apache.org is down, on which a dependency of Terraform is hosted. By using the proxy, we can still fetch the dep. See hashicorp/terraform#22664 for more details.
I can confirm that |
@SimonBarendse Thanks for the tip. Go is not my strong suit (obviously) 😃. |
Both modules (github.com/apache/thrift and git.apache.org/thrift.git) are available in GoCenter. We do encourage setting GOPROXY in your builds. Here is the URL of the modules in question - https://search.gocenter.io/github.com~2Fapache~2Fthrift/info |
Its worth mentioning that the official documentation points people to pull the dependency from github, not the apache mirror https://thrift.apache.org/lib/go#using-thrift-with-go |
hashicorp/go-getter#204 should fix this, once merged and incorporated here. It eliminates the transitive dependency on this library altogether, since Terraform doesn't actually need it. In the meantime, I suggest using |
Since the newest one would not work with go1.13 Not sure if i understand everyhting but it seems to work on 1.12 and 1.13 (and that's what they do as well here hashicorp/terraform#22664 (comment)) Closes tektoncd#298 Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com> Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
Since the newest one would not work with go1.13 Not sure if i understand everyhting but it seems to work on 1.12 and 1.13 (and that's what they do as well here hashicorp/terraform#22664 (comment)) Closes #298 Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com> Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
Hi all! #22741 has upgraded to a newer version of I would still suggest using Thanks again for reporting this, and for your patience while we investigated the source of the problem to find the best path forward. |
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. |
Terraform v0.12.5
Expected Behavior
It should build normally
Actual Behavior
It doesn't build
Steps to Reproduce
Build Terraform
I think the location of the
thrift
repository should be updated fromgit.apache.org/thrift.git
togithub.com/apache/thrift
.The issue has been listed on https://status.apache.org/ for several days.
The text was updated successfully, but these errors were encountered: