Skip to content

Commit 2ab1741

Browse files
committed
fix: resolve cargo-fuzz rustix breakage and babel cache conflict
- Install cargo-fuzz from git main instead of crates.io: v0.13.1 is the latest release and still pins rustix-0.36.5, which nightly Rust now rejects because it uses rustc_layout_scalar_valid_range_* attributes inside cfg_attr — the git version has updated its cargo dependency to one that uses rustix 0.38.x where those attributes were removed - Fix babel.config.js: api.cache(true) locks caching to forever mode and api.env() then throws "Caching has already been configured with .never or .forever()". Replace api.env('production') with a direct process.env.NODE_ENV read which bypasses Babel's cache API entirely
1 parent b6b32a6 commit 2ab1741

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/fuzz-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
components: llvm-tools
4444

4545
- name: Install cargo-fuzz
46-
run: cargo install cargo-fuzz --locked
46+
run: cargo install --git https://github.com/rust-fuzz/cargo-fuzz cargo-fuzz
4747

4848
- name: Restore seed corpus from cache
4949
uses: actions/cache@v4

babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = function (api) {
22
api.cache(true);
3-
const isProduction = api.env('production');
3+
const isProduction = process.env.NODE_ENV === 'production';
44

55
const plugins = [
66
[

0 commit comments

Comments
 (0)