The Go Programming Language
› http://golang.org/
› Go Playground
Go Projects
› Revel Web Framework
OpenYanxi

请教这个报错 : [email protected]/fileutil.go:12:2: package io/fs is not in GOROOT

  •  
  •   OpenYanxi · Sep 20, 2024 · 2288 views
    This topic created in 782 days ago, the information mentioned may be changed or developed.

    使用的该库一致的 go1.14 版本

    运行的这个文件:

    https://github.com/qiniu/go-sdk/blob/master/examples/create_uptoken.go

    报错是: ../.goPath/pkg/mod/modernc.org/[email protected]/fileutil.go:12:2: package io/fs is not in GOROOT (.../1.14.15/src/io/fs)

    Google 了,也 kimi 了,没弄明白。 请教社区大神

    4 replies  •  2024-09-20 19:20:41 +08:00
    setsunakute
    setsunakute
    Sep 20, 2024
    1
    io/fs 这个包是 golang 1.16 才有的, 升级一下 golang 版本
    crackidz
    crackidz
    Sep 20, 2024
    2
    你的 Go 版本太低了
    bv
    bv
    Sep 20, 2024
    3
    OpenYanxi
    OpenYanxi
    OP
    Sep 20, 2024
    4
    明白啦~ 感谢各位大佬

    顺便吐槽下这个最新的这个 7.22 的发布, 咋通过 ci-test 的各个 go 版本的测试的...

    https://github.com/qiniu/go-sdk/commit/e972184aab66706a12a2c6fd190b441739c7df9d
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2307 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 13:14 · PVG 21:14 · LAX 05:14 · JFK 08:14
    ♥ Do have faith in what you're doing.