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

go get error (genny) #69

Closed
nicomo opened this issue Jan 24, 2020 · 4 comments
Closed

go get error (genny) #69

nicomo opened this issue Jan 24, 2020 · 4 comments

Comments

@nicomo
Copy link

nicomo commented Jan 24, 2020

Not sure what's happening, but while outside of any particular project, I have an error when go getting this package :

go get -u github.com/gobuffalo/buffalo-auth
# github.com/gobuffalo/buffalo-auth/genny/auth
go/src/github.com/gobuffalo/buffalo-auth/genny/auth/auth.go:59:25: multiple-value meta.New() in single-value context
go/src/github.com/gobuffalo/buffalo-auth/genny/auth/auth.go:59:26: cannot use "." (type string) as type here.Info in argument to meta.New

Then in a project buffalo plugins install github.com/gobuffalo/buffalo-auth exits with the same message and status 2.

On go version go1.13 darwin/amd64 and Buffalo version is: v0.15.4

Any help appreciated, thanks.

@nicomo nicomo changed the title go get error go get error (genny) Jan 24, 2020
@DomasB
Copy link

DomasB commented Jan 26, 2020

Having exactly the same issue.
Go version: 1.13.6 linux/amd64
Buffalo version: v0.15.4

Also, if I run the same command in my project folder, I get

../../../../pkg/mod/github.com/gobuffalo/buffalo-auth@v1.2.0/genny/auth/auth.go:62:36: cannot use ctx (type *"github.com/gobuffalo/plush".Context) as type *"github.com/gobuffalo/plush/v4".Context in argument to plushgen.Transformer

@pablotrianda
Copy link

pablotrianda commented Feb 23, 2020

Having the same issue here!

Go version go1.13.7 linux/amd64
Buffalo version is: v0.15.5

# github.com/gobuffalo/buffalo-auth/genny/auth

src/github.com/gobuffalo/buffalo-auth/genny/auth/auth.go:59:25: multiple-value meta.New() in single-value context

src/github.com/gobuffalo/buffalo-auth/genny/auth/auth.go:59:26: cannot use "." (type string) as type here.Info in argument to meta.New

I have created the buffalo app with the --api flag, may be this cause the problem?

@nicomo
Copy link
Author

nicomo commented Mar 4, 2020

I have created the buffalo app with the --api flag, may be this cause the problem?

Didn't use the --api flag in my case, so probably not the cause of the problem.

@pijalu pijalu mentioned this issue Feb 18, 2021
@sio4
Copy link
Member

sio4 commented May 20, 2022

Obsolete, the issue must be related to the GOPATH mode and now we only support go modules.

Additional information: The interface of meta (v0.x, which is under the v0 branch now) and the interface of meta/v2 (currently in master branch) are different and all of the current buffalo family projects still use v0.

  • multiple-value meta.New() in single-value context --> v2's New() retuns two values while v0 returns only one.
  • cannot use "." (type string) as type here.Info in argument to meta.New v2 has argument here.Info while v0 gets string.

Closing.

@sio4 sio4 closed this as completed May 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants