Rust-GPU / Rust-GPU/rust-gpu

Error message using "./" is weird

Open
#577 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
3.4k
Forks
125
PR merge metrics
No merged PRs in 30d

Description

cargo gpu build (correctly) gives me:

[2025-03-30T02:08:14Z ERROR cargo_gpu] "./" must be a shader crate directory
Error: "./" must be a shader crate directory

But the error message feels off. It seems strange to have "./" there when I didn't put anything in.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the message with cargo gpu build as described in the issue, then trace the CLI entry point that formats the shader crate directory error. Determine why an omitted path is displayed as "./"; done means the resulting error message no longer presents that default path misleadingly.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.