Last active
September 23, 2019 23:21
-
-
Save abraithwaite/15a0ffd0021b4539793bc0ceb1dc3bc1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abraithwaite at republic in /tmp/test | |
16:19:35 $ ls | |
go.mod main.go | |
abraithwaite at republic in /tmp/test | |
16:19:38 $ cat main.go | |
package main | |
import ( | |
"fmt" | |
stats "github.com/segmentio/stats/v4" | |
) | |
func main() { | |
fmt.Println("vim-go") | |
stats.T("asdf", "qwer") | |
} | |
abraithwaite at republic in /tmp/test | |
16:19:44 $ cat go.mod | |
module example.com/test | |
go 1.13 | |
abraithwaite at republic in /tmp/test | |
16:19:59 $ ls -lah $GOPATH/pkg/mod/github.com/segmentio | |
ls: cannot access '/home/abraithwaite/Projects/golang/pkg/mod/github.com/segmentio': No such file or directory | |
abraithwaite at republic in /tmp/test | |
16:20:14 $ GO111MODULE=on GOPROXY=direct go get github.com/segmentio/stats/v4@v4.5.0 | |
go: extracting github.com/segmentio/stats/v4 v4.5.0 | |
go: finding github.com/segmentio/stats v4.5.0 | |
go get github.com/segmentio/stats/v4@v4.5.0: github.com/segmentio/stats@v4.5.0: invalid version: module contains a go.mod file, so major version must be compatible: should be v0 or v1, not v4 | |
abraithwaite at republic in /tmp/test | |
16:20:18 $ cat go.mod | |
module example.com/test | |
go 1.13 | |
abraithwaite at republic in /tmp/test | |
16:20:23 $ ls -lah $GOPATH/pkg/mod/github.com/segmentio | |
total 12K | |
drwxr-xr-x 3 abraithwaite abraithwaite 4.0K Sep 23 16:20 . | |
drwxr-xr-x 225 abraithwaite abraithwaite 4.0K Sep 23 16:20 .. | |
drwxr-xr-x 3 abraithwaite abraithwaite 4.0K Sep 23 16:20 stats | |
abraithwaite at republic in /tmp/test | |
16:20:25 $ ls -lah $GOPATH/pkg/mod/github.com/segmentio/stats | |
total 12K | |
drwxr-xr-x 3 abraithwaite abraithwaite 4.0K Sep 23 16:20 . | |
drwxr-xr-x 3 abraithwaite abraithwaite 4.0K Sep 23 16:20 .. | |
dr-x------ 14 abraithwaite abraithwaite 4.0K Sep 23 16:20 v4@v4.5.0 | |
abraithwaite at republic in /tmp/test | |
16:20:34 $ GO111MODULE=on GOPROXY=direct go get github.com/segmentio/stats/v4@v4.5.0 | |
go: finding github.com/segmentio/stats v4.5.0 | |
go get github.com/segmentio/stats/v4@v4.5.0: github.com/segmentio/stats@v4.5.0: invalid version: module contains a go.mod file, so major version must be compatible: should be v0 or v1, not v4 | |
abraithwaite at republic in /tmp/test | |
16:20:44 $ GO111MODULE=on GOPROXY=direct go get github.com/segmentio/stats/v4 | |
go: extracting github.com/segmentio/stats v4.1.0+incompatible | |
abraithwaite at republic in /tmp/test | |
16:20:51 $ cat go.mod | |
module example.com/test | |
go 1.13 | |
require github.com/segmentio/stats/v4 v4.5.0 // indirect |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment