-
Notifications
You must be signed in to change notification settings - Fork 249
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
how to use buf in an offline env? #2543
Comments
Hey! You can use workspaces. |
I'm not 100% sure, but I think you're misunderstanding what he's asking. I think he's asking how to use
It would be great if The need to contact a server every time I want to generate also seems to make buf run quite slowly, taking 2+ seconds just to regenerate a couple of files:
|
|
That directory doesn't exist on my system (Mac), nor is it in
Configuration below. I do use remote plugins (though I can't tell if this error message is triggered by plugins or modules), but what I'm suggesting is that either way, if I have local copies of the plugins or modules (which I should), then the buf tool shouldn't fail, only warn:
|
I did find
|
Plugins are remote by design, unfortunately in our opinion. Because of the myriad ways that plugins are developed and executed (native binaries compiled from various languages, JARs, npm), the lowest-common-denominator way to run all of them is by packaging them up into a Docker container. We didn't want to make You don't have any module dependencies in your We'd love to invest more here, and we think the right way is via WASM (after investigating a lot of avenues), but it just hasn't been our highest priority item as of yet. |
Ah okay, that makes total sense. I had a misunderstanding of how remote plugins worked TBH, I assumed they were hosted remotely but synced down locally, but it sounds like the execution of the plugin is actually hosted remotely and the client sends the descriptor set to the server for execution. This makes much more sense than my misconception ;) Thanks for the explanation, and I agree that with an ecosystem like protobuf's, WASM would be a tough task. |
No worries, and sorry for both the trouble and the delay in responding, it's been a hectic week. |
Closing this issue for now. Let us know if you need anything else. |
@bufdev sorry for asking in a closed issue but any condition required for using |
ah ok, I found the buf build mod cache folder in the comments already. |
if I use buf to build protobuf in an offline env. can't online download deps.
if use protoc, I can use "--proto_path=third_party", in buf, what is this function?
The text was updated successfully, but these errors were encountered: