Skip to content

Improve worker-build error for invalid working directory#915

Merged
guybedford merged 2 commits intocloudflare:mainfrom
SATVIKsynopsis:main
Jan 22, 2026
Merged

Improve worker-build error for invalid working directory#915
guybedford merged 2 commits intocloudflare:mainfrom
SATVIKsynopsis:main

Conversation

@SATVIKsynopsis
Copy link
Contributor

Fixes #880

This PR adds the part that shows a clearer error when worker-build is run outside a rust crate directory and guides users to use the correct directory or --path.

Copy link
Collaborator

@guybedford guybedford left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for posting this, just a couple of comments about the implementation.

@SATVIKsynopsis
Copy link
Contributor Author

I changed the error message to display full folder name and added check for only Cargo.toml.

@guybedford guybedford merged commit 4f42fa4 into cloudflare:main Jan 22, 2026
8 checks passed
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

Successfully merging this pull request may close these issues.

[BUG] cargo workspace project, how to config worker-build? worker-build error, but missing info can't resolve.

2 participants