You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update to Go 1.11 beta 3 and notes about minimal module awareness
This commit updates the README to include Go 1.11 beta 3.
We also add a few notes about "minimal module awareness" that has been
included in Go 1.10.3 and 1.9.7. Unfortunately, the `dep` tool is still
on its way to implement that.
* [Minimal module awareness in Go 1.10.3 and Go
1.9.7](https://go.googlesource.com/go/+/d4e21288e444d3ffd30d1a0737f15ea3fc3b8ad9)
* [Tracking implementation of "minimal module awareness" in dep](golang/dep#1963)
Connecting to Elasticsearch succeeded and we're talking to version 6.3.2
23
+
```
24
+
25
+
To do the same with Go 1.10.3, do:
26
+
21
27
```
28
+
$ go version
29
+
go version go1.10.3 darwin/amd64
30
+
$ go get -v ./...
31
+
$ go build
32
+
$ ./elastic-with-go-modules
33
+
Go version is go1.10.3
34
+
Connecting to Elasticsearch succeeded and we're talking to version 6.3.2
35
+
```
36
+
37
+
Notice that you *must* use Go 1.10.3 (or Go 1.9.7) because limited module support has only been [introduced in those versions](https://go.googlesource.com/go/+/d4e21288e444d3ffd30d1a0737f15ea3fc3b8ad9). Earlier versions of Go wouldn't find the import path `"github.com/olivere/elastic/v6"`.
38
+
39
+
Unfortunately, tools like [`dep`](https://github.com/golang/dep) don't support this either as of writing this. Follow [#1962](https://github.com/golang/dep/issues/1962) and [this PR](https://github.com/golang/dep/pull/1963) to watch progress on "minimal module awareness".
0 commit comments