Skip to content

Commit 79c81c9

Browse files
authored
Bump Go version to fix macOS resolver issue (hashicorp#1941)
With Go version < 1.20, Go is using the internal Go DNS resolver by default which only considers the file /etc/resolv.conf similar to glibc's behaviour. But macOS also supports additional configurations under /etc/resolver which is often used for local development to use proper name resolution. The behaviour has been changed beginning with Go version 1.20 (see also https://go-review.googlesource.com/c/go/+/446178) Fixes hashicorp#1940
1 parent 264b4db commit 79c81c9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.go-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.19.4
1+
1.20.6

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Requirements
2323
------------
2424

2525
- [Terraform](https://www.terraform.io/downloads.html) 0.12.x and above, we recommend using the latest stable release whenever possible.
26-
- [Go](https://golang.org/doc/install) 1.19 (to build the provider plugin)
26+
- [Go](https://golang.org/doc/install) 1.20 (to build the provider plugin)
2727

2828
Building The Provider
2929
---------------------
@@ -45,7 +45,7 @@ $ make build
4545
Developing the Provider
4646
---------------------------
4747

48-
If you wish to work on the provider, you'll first need [Go](http://www.golang.org) installed on your machine (version 1.19+ is *required*). You'll also need to correctly setup a [GOPATH](http://golang.org/doc/code.html#GOPATH), as well as adding `$GOPATH/bin` to your `$PATH`.
48+
If you wish to work on the provider, you'll first need [Go](http://www.golang.org) installed on your machine (version 1.20+ is *required*). You'll also need to correctly setup a [GOPATH](http://golang.org/doc/code.html#GOPATH), as well as adding `$GOPATH/bin` to your `$PATH`.
4949

5050
To compile the provider, run `make build`. This will build the provider and put the provider binary in the `$GOPATH/bin` directory.
5151

0 commit comments

Comments
 (0)