Skip to content
This repository has been archived by the owner on Jan 28, 2021. It is now read-only.

go 1.11.2 doesn't fetch auth #551

Closed
sashka opened this issue Nov 15, 2018 · 4 comments
Closed

go 1.11.2 doesn't fetch auth #551

sashka opened this issue Nov 15, 2018 · 4 comments

Comments

@sashka
Copy link

sashka commented Nov 15, 2018

The example from master doesn't build with the following error:

main.go:7:2: unknown import path "gopkg.in/src-d/go-mysql-server.v0/auth": cannot find module providing package gopkg.in/src-d/go-mysql-server.v0/auth

Verbose go build points the the root of the problem:

Parsing meta tags from https://gopkg.in?go-get=1 (status code 200)
gopkg.in/src-d/go-mysql-server.v0/auth
go build gopkg.in/src-d/go-mysql-server.v0/auth: no Go files in 

And finally there's actually no auth package indeed:

sashka@host ~/go> ls -la ~/go/pkg/mod/gopkg.in/src-d/go-mysql-server.v0@v0.1.1/
total 192
dr-xr-xr-x  25 sashka  staff    850 Nov 15 14:24 .
drwxr-xr-x   6 sashka  staff    204 Nov 15 14:26 ..
-r--r--r--   1 sashka  staff    362 Nov 15 14:24 .gitignore
-r--r--r--   1 sashka  staff   2095 Nov 15 14:24 .travis.yml
-r--r--r--   1 sashka  staff   2929 Nov 15 14:24 CONTRIBUTING.md
-r--r--r--   1 sashka  staff   1422 Nov 15 14:24 DCO
-r--r--r--   1 sashka  staff  11357 Nov 15 14:24 LICENSE
-r--r--r--   1 sashka  staff     58 Nov 15 14:24 MAINTAINERS
-r--r--r--   1 sashka  staff    393 Nov 15 14:24 Makefile
-r--r--r--   1 sashka  staff  10734 Nov 15 14:24 README.md
-r--r--r--   1 sashka  staff   1112 Nov 15 14:24 SUPPORTED.md
-r--r--r--   1 sashka  staff     26 Nov 15 14:24 _config.yml
dr-xr-xr-x   3 sashka  staff    102 Nov 15 14:24 _example
dr-xr-xr-x  10 sashka  staff    340 Nov 15 14:24 _integration
dr-xr-xr-x   4 sashka  staff    136 Nov 15 14:24 _scripts
dr-xr-xr-x   4 sashka  staff    136 Nov 15 14:24 benchmark
-r--r--r--   1 sashka  staff   2442 Nov 15 14:24 engine.go
-r--r--r--   1 sashka  staff  26223 Nov 15 14:24 engine_test.go
-r--r--r--   1 sashka  staff   1314 Nov 15 14:24 example_test.go
-r--r--r--   1 sashka  staff    657 Nov 15 14:24 go.mod
dr-xr-xr-x   3 sashka  staff    102 Nov 15 14:24 internal
dr-xr-xr-x   6 sashka  staff    204 Nov 15 14:24 mem
dr-xr-xr-x   6 sashka  staff    204 Nov 15 14:24 server
dr-xr-xr-x  25 sashka  staff    850 Nov 15 14:24 sql
dr-xr-xr-x   3 sashka  staff    102 Nov 15 14:24 test
@ajnavarro
Copy link
Contributor

ajnavarro commented Nov 15, 2018

Hey @sashka ,

You are using a previous version of the library, v0.1.1 with no auth implemented on it.

To be able to use the latest version, you must use the master branch instead of the tag v0.1.1.

Try executing go mod edit -require gopkg.in/src-d/go-mysql-server.v0@master on your project.

@sashka
Copy link
Author

sashka commented Nov 15, 2018

Hey @ajnavarro ,

Looks like there's no official way to fetch master: go build resolves v0@master to v0.1.1, so I have the same issue.

Pseudo-versions v0.1.1-20181115104207-2da211e3dcb6 and v0.0.0-20181115104207-2da211e3dcb6 don't work neither.

@ajnavarro
Copy link
Contributor

Appears that gopkg.in is not allowing fetch of commits outside the specific tag. I just created a new 0.2.0 version. Could you check it, please?

@sashka
Copy link
Author

sashka commented Nov 15, 2018

Yes, with v0.2.0 it works perfectly. Thank you.
I'm closing the issue then.

@sashka sashka closed this as completed Nov 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants