AlecAivazis / survey

A golang library for building interactive and accessible prompts with full support for windows and posix terminals.
MIT License
4.07k stars 351 forks source link

go get problem: module declares its path as: gopkg.in/AlecAivazis/survey.v1 but was required as: github.com/AlecAivazis/survey #369

Closed quiquelhappy closed 2 years ago

quiquelhappy commented 2 years ago

What operating system and terminal are you using? tested on both MacOS Big Sur and ubuntu-latest (github actions)

An example that showcases the bug. executing go get github.com/AlecAivazis/survey

What did you expect to see? actual install

What did you see instead?

quiqueosunagarcia@MBP-de-Quique cli % go get github.com/AlecAivazis/survey
go get: github.com/AlecAivazis/survey@v1.8.1 updating to
        github.com/AlecAivazis/survey@v1.8.8: parsing go.mod:
        module declares its path as: gopkg.in/AlecAivazis/survey.v1
                but was required as: github.com/AlecAivazis/survey
mislav commented 2 years ago

Per https://github.com/AlecAivazis/survey/blob/v1/README.md the official import path for v1 is:

"gopkg.in/AlecAivazis/survey.v1"

But it's recommended to use v2 as it is the latest version:

"github.com/AlecAivazis/survey/v2"