Skip to content

Fail the build when no libraries are found in the Cargo output directory - #181

Merged
rvandermeulen merged 1 commit into
mozilla:masterfrom
rvandermeulen:copy-check
Nov 21, 2026
Merged

rvandermeulen merged 1 commit into
mozilla:masterfrom
rvandermeulen:copy-check

Conversation

@rvandermeulen

Copy link
Copy Markdown
Collaborator

With a wrong target directory, typically a crate in a Cargo workspace without targetDirectory set, the copy step matched nothing and the build passed with no native library in the output. This makes the build fail and name the directory it looked in. It also catches a wrong libname, profile or targetIncludes. Supersedes #47.

With a wrong target directory, typically a crate in a Cargo workspace without `targetDirectory` set, the copy
step matched nothing and the build passed with no native library in the output.

@segunfamisa segunfamisa left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for this!

@rvandermeulen
rvandermeulen merged commit 9b38430 into mozilla:master Nov 21, 2026
13 checks passed
@rvandermeulen
rvandermeulen deleted the copy-check branch November 21, 2026 21:03
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.

2 participants