manifoldco / promptui

Interactive prompt for command-line applications
https://www.manifold.co
BSD 3-Clause "New" or "Revised" License
6.03k stars 333 forks source link

go mod fails to pull dependencies for promptui #115

Closed jpninanjohn closed 4 years ago

jpninanjohn commented 4 years ago

Getting this error when trying to import promptui using go mod.

github.com/manifoldco/promptui imports
    github.com/alecthomas/gometalinter imports
    gopkg.in/alecthomas/kingpin.v3-unstable imports
    github.com/nicksnyder/go-i18n/i18n: module github.com/nicksnyder/go-i18n@latest (v2.0.2+incompatible) found, but does not contain package github.com/nicksnyder/go-i18n/i18n

This does not exist -> github.com/nicksnyder/go-i18n/i18n It has been changed to github.com/nicksnyder/go-i18n/v2/i18n

terryding77 commented 4 years ago

as trick, I forked this package and remove github.com/alecthomas/gometalinter at tools.go file in this commit now I can add

replace github.com/manifoldco/promptui => github.com/terryding77/promptui v0.3.3

into go.mod to avoid problem with golang 1.13

I know this solution is not a great way, as getting the official solution, I will delete the fork repo. we hope this problem can be fixed as soon as possible!

nervo commented 4 years ago

@terryding77 what about just adding replace github.com/nicksnyder/go-i18n => github.com/nicksnyder/go-i18n v1.10.1 in your own go.mod ?

Btw, @jbowes the problem still occurs, maybe the issue should be re-open :)

jbowes commented 4 years ago

Ok, we've got a real proper solution now on master. I'll be tagging shortly. No more replaces needed!