gobwas / ws

Tiny WebSocket library for Go.
MIT License
6.14k stars 376 forks source link

cannot find package \"github.com/gobwas/pool/pbufio and github.com/gobwas/httphead #123

Closed meiry closed 3 years ago

meiry commented 3 years ago

hello im getting this error when loading project in visual studio code :

{
    "resource": "/home/foo/projects/ws/dialer.go",
    "owner": "go",
    "severity": 8,
    "message": "cannot find package \"github.com/gobwas/pool/pbufio\" in any of:\n\t/usr/local/go/src/github.com/gobwas/pool/pbufio (from $GOROOT)\n\t/home/foo/go/src/github.com/gobwas/pool/pbufio (from $GOPATH)",
    "source": "go",
    "startLineNumber": 17,
    "startColumn": 2,
    "endLineNumber": 17,
    "endColumn": 3
}

{
    "resource": "/home/foo/projects/ws/dialer.go",
    "owner": "go",
    "severity": 8,
    "message": "cannot find package \"github.com/gobwas/httphead\" in any of:\n\t/usr/local/go/src/github.com/gobwas/httphead (from $GOROOT)\n\t/home/foo/go/src/github.com/gobwas/httphead (from $GOPATH)",
    "source": "go",
    "startLineNumber": 16,
    "startColumn": 2,
    "endLineNumber": 16,
    "endColumn": 3
}
meiry commented 3 years ago

solution :

foo@FOO-LP:~/projects/ws$ go get github.com/gobwas/httphead
foo@FOO-LP:~/projects/ws$ go get github.com/gobwas/pool/pbufio
gobwas commented 3 years ago

Hey @meiry, in v1.1.0 ws will use go modules, so this should not reproduce. Closing this for now.