-
Notifications
You must be signed in to change notification settings - Fork 18k
x/vgo:cannot find module providing package #26526
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
Comments
EDIT: Do you have an old git version < 2.10 ? Check #26501 |
@tolidano I'm not sure what your example is trying to achieve? Because it appears to be importing a main package:
Using I'll close this for now because I don't think there are any module related issues here, but please shout if there's anything I've missed. |
Sorry, sent the above without actually including the output:
|
I apologize, that was an error I corrected (swapping for dynport‘s SSH client library.
But even without, I was not getting the output you have here.
- Shawn (iPhone)
… On Jul 23, 2018, at 2:36 AM, Paul Jolly ***@***.***> wrote:
Sorry, sent the above without actually including the output:
go: finding github.com/YuriyNasretdinov/GoSSHa latest
go: finding github.com/aws/aws-sdk-go/aws/session latest
go: finding github.com/aws/aws-sdk-go/aws latest
go: downloading github.com/YuriyNasretdinov/GoSSHa v0.0.0-20170620125610-f451327954cf
go: finding github.com/aws/aws-sdk-go v1.14.31
go: downloading github.com/aws/aws-sdk-go v1.14.31
go: finding github.com/go-ini/ini v1.25.4
go: finding github.com/jmespath/go-jmespath v0.0.0-20160202185014-0b12d6b521d8
go: downloading github.com/go-ini/ini v1.25.4
go: downloading github.com/jmespath/go-jmespath v0.0.0-20160202185014-0b12d6b521d8
go: finding golang.org/x/crypto/ssh latest
go: finding golang.org/x/crypto/ssh/agent latest
go: finding golang.org/x/crypto latest
go: downloading golang.org/x/crypto v0.0.0-20180718160520-a2144134853f
construct.go:4:9: import "github.com/YuriyNasretdinov/GoSSHa" is a program, not an importable package
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
make this simple file:
shawn@gallium:~/go/src/github.com/tolidano/construct$ head construct.go
package construct
import (
"github.com/YuriyNasretdinov/GoSSHa"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
)
try to vgo get:
shawn@gallium:~/go/src/github.com/tolidano/construct$ vgo get github.com/YuriyNasretdinov/GoSSHa
go: finding github.com/YuriyNasretdinov/GoSSHa latest
go get github.com/YuriyNasretdinov/GoSSHa: cannot find module providing package github.com/YuriyNasretdinov/GoSSHa
but go get:
shawn@gallium:~/go/src/github.com/tolidano/construct$ go get github.com/YuriyNasretdinov/GoSSHa
my env:
shawn@gallium:~/go/src/github.com/tolidano/construct$ go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/shawn/.cache/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/shawn/go"
GORACE=""
GOROOT="/usr/lib/go-1.10"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/go-1.10/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
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 -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build747897478=/tmp/go-build -gno-record-gcc-switches"
go and vgo version:
shawn@gallium:~/go/src/github.com/tolidano/construct$ vgo version
go version go1.10 linux/amd64 vgo:devel +88c76dcbab
So, I figured vgo would work? I'm on GalliumOS, basically Kubuntu. Installed like this:
sudo apt-get install golang -y
sudo apt-get install golang-1.10-go -y
The text was updated successfully, but these errors were encountered: