美文网首页
github.com/lucas-clemente/quic-g

github.com/lucas-clemente/quic-g

作者: 危地马拉的大坑 | 来源:发表于2019-12-16 18:18 被阅读0次

    项目创建使用go的版本是1.12,后来升级到1.13版本后,启动mirco项目会报以下错误:

    go: downloading github.com/lucas-clemente/quic-go v0.12.0
    go: downloading golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4
    go: downloading golang.org/x/sys v0.0.0-20190812073006-9eafafc0a87e
    verifying github.com/lucas-clemente/quic-go@v0.12.0: checksum mismatch
        downloaded: h1:dYHUyB50gEQlK3KqytmNySzuyzAcaQ3iuI2ZReAfVrE=
        sum.golang.org: h1:TRbvZ6F++sofeGbh+Z2IIyIOhl8KyGnYuA06g2yrHdI=
    
    SECURITY ERROR
    This download does NOT match the one reported by the checksum server.
    The bits may have been replaced on the origin server, or an attacker may
    have intercepted the download attempt.
    
    For more information, see 'go help module-auth'.
    

    怀疑是升级到1.13版本导致的。

    我的解决方法是:

    1. 修改go mod文件的版本号为1.13
    2. 在mod文件里添加依赖
    github.com/lucas-clemente/quic-go v0.13.0
    

    即可解决,希望能帮到在折腾go路上的小伙伴~~

    相关文章

      网友评论

          本文标题:github.com/lucas-clemente/quic-g

          本文链接:https://www.haomeiwen.com/subject/ynbdnctx.html