Navigation Menu

Skip to content
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

x/vgo: #25468

Closed
kolkov opened this issue May 20, 2018 · 3 comments
Closed

x/vgo: #25468

kolkov opened this issue May 20, 2018 · 3 comments
Milestone

Comments

@kolkov
Copy link

kolkov commented May 20, 2018

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

D:\Go\src\kassar>vgo version
go version go1.10.2 windows/amd64 vgo:2018-02-20.1

Does this issue reproduce with the latest release?

Yes

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

D:\Go\src\kassar>go env
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\Andy\AppData\Local\go-build
set GOEXE=.exe
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=D:\Go
set GORACE=
set GOROOT=C:\Go
set GOTMPDIR=
set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64
set GCCGO=gccgo
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:\Users\Andy\AppData\Local\Temp\go-build432466498=/tmp/go-build -gno-record-gcc
-switches

What did you do?

D:\Go\src\kassar>vgo build ./cmd/server

What did you expect to see?

Builded successfully

What did you see instead?

# github.com/go-ozzo/ozzo-routing/auth
..\v\github.com\go-ozzo\ozzo-routing@v0.0.0-20180210022422-9dcabc145f0d\auth\handlers.go:268:13: undefined: jwt.Parser
..\v\github.com\go-ozzo\ozzo-routing@v0.0.0-20180210022422-9dcabc145f0d\auth\handlers.go:298:20: undefined: jwt.MapClaims
..\v\github.com\go-ozzo\ozzo-routing@v0.0.0-20180210022422-9dcabc145f0d\auth\handlers.go:299:6: type jwt.SigningMethodHS256 is not an expression
..\v\github.com\go-ozzo\ozzo-routing@v0.0.0-20180210022422-9dcabc145f0d\auth\handlers.go:303:9: undefined: jwt.NewWithClaims

I try to build this exaple in my app:
https://github.com/qiangxue/golang-restful-starter-kit

@gopherbot gopherbot added this to the vgo milestone May 20, 2018
@kolkov
Copy link
Author

kolkov commented May 20, 2018

This package faild with version 1.0.2:

- package: github.com/dgrijalva/jwt-go
  version: ^3.0

After update manualy all fine:

D:\Go\src\kassar>vgo build ./cmd/server
vgo: downloading github.com/dgrijalva/jwt-go v0.0.0-20160616191556-d2709f9f1f31

D:\Go\src\kassar>vgo build ./cmd/server

D:\Go\src\kassar>server
Sql connected successfuly!

@kardianos
Copy link
Contributor

vgo uses semantic import versioning, this means that to get vgo to import v3, the import paths that us it should include "/v3/" in the import paths. I don't have your exact code of what you are trying to build, but from your initial description vgo is working as expected in this situation.

@kardianos
Copy link
Contributor

I would recommend seeking help in one of these channels next: https://golang.org/help/

@golang golang locked and limited conversation to collaborators May 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants