fix(repo): resolve FreeBSD build disk space issue#35030
Merged
FrozenPandaz merged 2 commits intomasterfrom Mar 26, 2026
Merged
Conversation
✅ Deploy Preview for nx-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for nx-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
|
View your CI Pipeline Execution ↗ for commit d0a26f3
☁️ Nx Cloud last updated this comment at |
7f400e6 to
f9e3d6d
Compare
… plugin The FreeBSD VM only has 11G of disk and the Rust native build was running out of space. Disabling the Gradle plugin avoids installing OpenJDK17 and its ~30 X11/font dependencies (~500MB), which aren't needed for the native bindings build. Also explicitly install ca_root_nss for CA certificates (previously pulled in transitively by openjdk17), and stop deleting ~/.cargo/registry and ~/.cargo/git during cleanup since Cargo needs them to resolve dependencies.
f9e3d6d to
08bf725
Compare
The `creation_flags()` call requires a mutable `Command`, but the variable was declared immutable. This only manifests on Windows builds since the call is behind `#[cfg(target_os = "windows")]`. Split into separate cfg blocks so each platform compiles cleanly.
jaysoo
approved these changes
Mar 26, 2026
FrozenPandaz
added a commit
that referenced
this pull request
Mar 26, 2026
## Current Behavior The FreeBSD native build in the publish workflow runs out of disk space (`No space left on device`). The VM has an 11G disk and the Rust build fills it completely. The build was already on the edge — the Mar 25 run succeeded with only 11MB to spare, and the Mar 26 run failed after rustc 1.94.1 slightly increased artifact sizes. A major contributor is OpenJDK17 and its ~30 X11/font dependencies (~500MB) being installed solely for the `@nx/gradle` plugin's project graph step, which is irrelevant to building native Rust bindings. ## Expected Behavior The FreeBSD build completes successfully with comfortable disk headroom by disabling the Gradle plugin via `NX_GRADLE_DISABLE=true`, which eliminates the need for Java and its heavy dependency tree. ## Related Issue(s) Fixes the FreeBSD build failure: https://github.com/nrwl/nx/actions/runs/23613960439/job/68776656960 (cherry picked from commit 9747038)
Contributor
|
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Current Behavior
The FreeBSD native build in the publish workflow runs out of disk space (
No space left on device). The VM has an 11G disk and the Rust build fills it completely. The build was already on the edge — the Mar 25 run succeeded with only 11MB to spare, and the Mar 26 run failed after rustc 1.94.1 slightly increased artifact sizes.A major contributor is OpenJDK17 and its ~30 X11/font dependencies (~500MB) being installed solely for the
@nx/gradleplugin's project graph step, which is irrelevant to building native Rust bindings.Expected Behavior
The FreeBSD build completes successfully with comfortable disk headroom by disabling the Gradle plugin via
NX_GRADLE_DISABLE=true, which eliminates the need for Java and its heavy dependency tree.Related Issue(s)
Fixes the FreeBSD build failure: https://github.com/nrwl/nx/actions/runs/23613960439/job/68776656960