Code Monkey home page Code Monkey logo

Comments (2)

vine2024 avatar vine2024 commented on September 26, 2024

我下载了google官网的包,放到环境变量里。然后执行
protoc -I . --go_out=./proto --go-grpc_out=./proto ./proto/source/test/slot.proto
报错:
The import path must contain at least one period ('.') or forward slash ('/') character.
排查后发现是官方包struct.proto文件内容option go_package = "types";
改为option go_package = "./types";后重新生成,可以正常生成了,
但是打开生成后的文件发现types 引用路径有问题:

import (
	types "/types"
...
)

请问这个问题怎么解决?

from go-zero.

kesonan avatar kesonan commented on September 26, 2024

Did you file the issue in the wrong place? This is go-zero, not proto. Maybe https://protobuf.dev/ can be helpful to you.

from go-zero.

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.