AlecAivazis / survey

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

Rename package to `github.com/go-survey/survey/v2` in `go.mod` #465

Open EtienneM opened 1 year ago

EtienneM commented 1 year ago

An example that showcases the bug.

Executing go get -u github.com/go-survey/survey/v2

What did you expect to see?

No error

What did you see instead?

go: downloading github.com/go-survey/survey/v2 v2.3.6              
go: github.com/go-survey/survey/v2@v2.3.6: parsing go.mod:           
        module declares its path as: github.com/AlecAivazis/survey/v2     
                but was required as: github.com/go-survey/survey/v2                                                                                                                           

The GitHub repository has been renamed, but not the package name in go.mod:

https://github.com/go-survey/survey/blob/93657ef69381dd1ffc7a4a9cfe5a2aefff4ca4ad/go.mod#L1

mfiumara commented 1 year ago

I opened a PR that should fix this (https://github.com/go-survey/survey/pull/484)