Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with go 1.10 version: looking for io/fs: Cannot detect VCS #294

Closed
yogi2606 opened this issue Mar 25, 2021 · 3 comments
Closed

Error with go 1.10 version: looking for io/fs: Cannot detect VCS #294

yogi2606 opened this issue Mar 25, 2021 · 3 comments

Comments

@yogi2606
Copy link

I am using

  • package: github.com/spf13/viper
    version: v1.4.0
  • package: github.com/spf13/cobra
    version: 0.0.5

which internally using spf13/afero package

I am using go 1.10 and getting following error

�[0;33m[WARN] �[mUnable to checkout io/fs �[0;31m[ERROR] �[mError looking for io/fs: Cannot detect VCS �[0;31m[ERROR] �[mFailed to retrieve a list of dependencies: Error resolving imports make: *** [dependencies] Error 1

i drill down to root cause and found that one of the package from

  • package: github.com/spf13/viper
    version: v1.4.0
  • package: github.com/spf13/cobra
    version: 0.0.5

is downloading latest version of spf13/afero which is compatible with go 1.16 only

@jeffwidman
Copy link
Contributor

You'll need go 1.15.10 or higher, see #291 (comment)

@jcburley
Copy link

jcburley commented Dec 2, 2021

You'll need go 1.15.10 or higher, see #291 (comment)

Is there a reason go.mod has not been updated to require Go 1.16? Seems like it should be, since the package itself now requires that.

@jeffwidman
Copy link
Contributor

Good suggestion @jcburley, I just opened #346 to address that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants