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

genny dependency issue #36

Closed
giulianozor opened this issue Dec 24, 2019 · 3 comments
Closed

genny dependency issue #36

giulianozor opened this issue Dec 24, 2019 · 3 comments

Comments

@giulianozor
Copy link

Description

Hello,
this worked fine yesterday 23/12/2019 with (probably) genny version 0.4.1 )v.5.x is 9 hours old right now)

I have a Dockerfile that from golang:1.13.4 uses
go get github.com/gobuffalo/buffalo/buffalo

The command fails with the error

build github.com/gobuffalo/buffalo/buffalo: cannot load github.com/gobuffalo/genny/gogen/gomods: module github.com/gobuffalo/genny@latest found (v0.5.2), but does not contain package github.com/gobuffalo/genny/gogen/gomods

In go.mod I have no reference to genny,so I suppose it is a dependency of buffalo

To be ablle to install buffalo can I use something lie
git config --global --add url."github.com/gobuffalo/genny@v0.4.1".insteadOf "https://github.com/gobuffalo/genny@latest"

Thanks

Steps to Reproduce the Problem

docker run --entrypoin bash -it golang/1.13.4
go get github.com/gobuffalo/buffalo/buffalo

Expected Behavior

no errors

Actual Behavior

build github.com/gobuffalo/buffalo/buffalo: cannot load github.com/gobuffalo/genny/gogen/gomods: module github.com/gobuffalo/genny@latest found (v0.5.2), but does not contain package github.com/gobuffalo/genny/gogen/gomods

Info

buffalo is not installed, so no "buffalo info"

@tuesmiddt
Copy link

Just wanted to say I have the same problem.

I'm trying to install buffalo on my dev machine with the command go get -u -v github.com/gobuffalo/buffalo/buffalo.

go version: go version go1.13.5 linux/amd64

@markbates markbates transferred this issue from gobuffalo/buffalo Dec 24, 2019
markbates added a commit that referenced this issue Dec 24, 2019
This reverts commit 4c2eec2.
@markbates
Copy link
Member

The problem is the -u flag tells Go to use @latest, which isn't compatible.

The solution, is to not use the -u flag and everything will compile correctly.

We will be reverting the v0.5 changes to prevent more issues with the -u flag, but I'm closing this bug as the solution is to just not use the -u flag and, instead, use the intended package versions.

@gadelkareem
Copy link

still happens even without -u

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

No branches or pull requests

4 participants