Go: missing dot in first path element

Created on 11 Sep 2019  路  5Comments  路  Source: golang/go

What version of Go are you using (go version)?

$ go version go1.13 darwin/amd64

Does this issue reproduce with the latest release?

yes

What operating system and processor architecture are you using (go env)?

go env Output

$ go env


``` go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/lonkar/Library/Caches/go-build"
GOENV="/Users/lonkar/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/lonkar/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/Cellar/go/1.13"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.13/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/lonkar/indigo/poc/k8s-cloud-mgr-svc/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/5j/3twyy2s95mn2m46hz_35qthrp4gblv/T/go-build924010494=/tmp/go-build -gno-record-gcc-switches -fno-common"

### What did you do?

<!--
A complete runnable program is good.
-->

go get -u -t github.com/volatiletech/sqlboiler

### What did you expect to see?



### What did you see instead?

go get -u -t github.com/volatiletech/sqlboiler
go: finding golang.org/x/sys latest
go: finding github.com/volatiletech/inflect latest
build github.com/volatiletech/sqlboiler: cannot load bufio: malformed module path "bufio": missing dot in first path element```

Most helpful comment

I used https://ahmadawais.com/install-go-lang-on-macos-with-homebrew/ to setup env & install go. this fixed it

All 5 comments

I used https://ahmadawais.com/install-go-lang-on-macos-with-homebrew/ to setup env & install go. this fixed it

for me the issue was resolved after chaning the GOROOT environment variable from "/usr/loca/go/bin" to "/usr/local/go"

OS : Linux centos

鍙兘鏄痝oland terminal鐨勯棶棰橈紝鎴戜娇鐢╣oland鐨則erminal锛屽氨鎶an't load package: package go_demo/article3/lib: malformed module path "go_demo/article3/lib": missing dot in first path element
绫讳技鐨勯敊璇紝浣嗘槸浣跨敤绯荤粺鐨則erminal灏辨病闂

鍙兘鏄痝oland terminal鐨勯棶棰橈紝鎴戜娇鐢╣oland鐨則erminal锛屽氨鎶an't load package: package go_demo/article3/lib: malformed module path "go_demo/article3/lib": missing dot in first path element
绫讳技鐨勯敊璇紝浣嗘槸浣跨敤绯荤粺鐨則erminal灏辨病闂

thank you ,you had better use English to reply it .Hahaha

May be you have different go root path between IDE and default, pls make sure this point..

Was this page helpful?
0 / 5 - 0 ratings