Closed alvaroloes closed 5 years ago
Ok, found the workaround. Put this in your application go.mod
file:
replace github.com/AlecAivazis/survey => gopkg.in/AlecAivazis/survey.v1 v1.8.4
replace gopkg.in/AlecAivazis/survey.v1 => github.com/AlecAivazis/survey v1.8.4
Why two replace? because if not, we get this error:
go: gopkg.in/AlecAivazis/survey.v1@v1.8.4 used for two different module paths (github.com/AlecAivazis/survey and gopkg.in/AlecAivazis/survey.v1)
It seems that the project uses both paths.
I'll leave the issue open in case other people have the same problem. Please feel free to close it if you consider.
Thanks @alvaroloes! I've been meaning to migrate to modules and will clean things up.
Should be resolved with https://github.com/mweagle/Sparta/blob/master/CHANGES.md#v194. Closing - please reopen if you run into any issues.
I'm using go version 1.12 which have "go modules" enabled by default and I can't "go get" Sparta to do the sample application.
This can be reproduced by doing:
Result:
As you can see, there is a problem with the
survey
module, some kind of conflict between "github.com/AlecAivazis/survey@v1.8.4" and "gopkg.in/AlecAivazis/survey.v1"Is there any workaround? I can't get to start using Sparta.
Thanks you!