Closed giulianozor closed 4 years ago
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
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.
still happens even without -u
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"
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"