Skip to content
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

proto-build "No such file or directory" #359

Closed
Philipp-Sc opened this issue Mar 18, 2023 · 2 comments
Closed

proto-build "No such file or directory" #359

Philipp-Sc opened this issue Mar 18, 2023 · 2 comments

Comments

@Philipp-Sc
Copy link
Contributor

It took me some time to figure out what was missing, since the rust error complains about a file/directory.

thread 'main' panicked at 'exit status missing: Os { code: 2, kind: NotFound, message: "No such file or directory" }', proto-build/src/main.rs:134:10

I am on linux so I installed buf via npm and updated main.rs to run "npx buf" instead of "buf".

npm install @bufbuild/buf
 run_cmd(
        "npx",
        vec![
            "buf",
            "generate",
            "--template",
            "buf.wasmd.gen.yaml",
            "--include-imports",
            "-o",
            &out_dir.display().to_string(),
            &proto_path.display().to_string(),
        ],
    );

For convenience it would be great to have a README.md that mentions the requirements.

Otherwise good work!

Best regards,
Philipp-Sc

@tony-iqlusion
Copy link
Member

This was just merged a couple days ago, so it's a little rough around the edges: #358

@tony-iqlusion
Copy link
Member

The ergonomics here should've been improved by #387

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants