Git Product home page Git Product logo

Comments (1)

aofei avatar aofei commented on June 30, 2024

这是正常的结果,因为 google.golang.org/protobuf/encoding/protojson 并不是一个模块,它只是模块 google.golang.org/protobuf 中的一个包而已。

Go modules 的工作原理是依靠 GOPROXY 返回的 404/410 响应代码来做模块路径推算,大致推算步骤如下:

https://goproxy.cn/google.golang.org/protobuf/encoding/protojson/@v/v1.30.0.mod -> 404
https://goproxy.cn/google.golang.org/protobuf/encoding/@v/v1.30.0.mod -> 404
https://goproxy.cn/google.golang.org/protobuf/@v/v1.30.0.mod -> 200

最后得到了 200,所以 go 命令才能知道你的目标模块路径是 google.golang.org/protobuf

from goproxy.cn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.