File tree 7 files changed +43
-98
lines changed
7 files changed +43
-98
lines changed Original file line number Diff line number Diff line change @@ -119,9 +119,7 @@ jobs:
119
119
run : rustup target add ${{ matrix.target }}
120
120
121
121
- name : Install dependencies
122
- run : |
123
- pnpm install --ignore-scripts --filter=!./playgrounds/*
124
- pnpm postinstall
122
+ run : pnpm install --ignore-scripts --filter=!./playgrounds/*
125
123
126
124
- name : Build release
127
125
run : pnpm run --filter ${{ env.OXIDE_LOCATION }} build
@@ -168,7 +166,6 @@ jobs:
168
166
./rustup-init -y --profile minimal
169
167
source "$HOME/.cargo/env"
170
168
pnpm install --ignore-scripts --filter=!./playgrounds/* || true
171
- pnpm postinstall
172
169
echo "~~~~ rustc --version ~~~~"
173
170
rustc --version
174
171
echo "~~~~ node -v ~~~~"
Original file line number Diff line number Diff line change @@ -118,9 +118,7 @@ jobs:
118
118
run : rustup target add ${{ matrix.target }}
119
119
120
120
- name : Install dependencies
121
- run : |
122
- pnpm install --ignore-scripts --filter=!./playgrounds/*
123
- pnpm postinstall
121
+ run : pnpm install --ignore-scripts --filter=!./playgrounds/*
124
122
125
123
- name : Build release
126
124
run : pnpm run --filter ${{ env.OXIDE_LOCATION }} build
@@ -173,7 +171,6 @@ jobs:
173
171
echo "~~~~ pnpm --version ~~~~"
174
172
pnpm --version
175
173
pnpm install --ignore-scripts --filter=!./playgrounds/* || true
176
- pnpm postinstall
177
174
pnpm run --filter ${{ env.OXIDE_LOCATION }} build
178
175
strip -x ${{ env.OXIDE_LOCATION }}/*.node
179
176
ls -la ${{ env.OXIDE_LOCATION }}
Original file line number Diff line number Diff line change @@ -118,9 +118,7 @@ jobs:
118
118
run : rustup target add ${{ matrix.target }}
119
119
120
120
- name : Install dependencies
121
- run : |
122
- pnpm install --ignore-scripts --filter=!./playgrounds/*
123
- pnpm postinstall
121
+ run : pnpm install --ignore-scripts --filter=!./playgrounds/*
124
122
125
123
- name : Build release
126
124
run : pnpm run --filter ${{ env.OXIDE_LOCATION }} build
@@ -173,7 +171,6 @@ jobs:
173
171
echo "~~~~ pnpm --version ~~~~"
174
172
pnpm --version
175
173
pnpm install --ignore-scripts --filter=!./playgrounds/* || true
176
- pnpm postinstall
177
174
pnpm run --filter ${{ env.OXIDE_LOCATION }} build
178
175
strip -x ${{ env.OXIDE_LOCATION }}/*.node
179
176
ls -la ${{ env.OXIDE_LOCATION }}
Original file line number Diff line number Diff line change @@ -496,12 +496,39 @@ impl Ignore {
496
496
Match :: None
497
497
} ;
498
498
499
- m_custom_ignore
500
- . or ( m_ignore)
501
- . or ( m_gi)
502
- . or ( m_gi_exclude)
503
- . or ( m_global)
504
- . or ( m_explicit)
499
+ let order = [
500
+ // Global gitignore
501
+ & m_global,
502
+ // .git/info/exclude
503
+ & m_gi_exclude,
504
+ // .gitignore
505
+ & m_gi,
506
+ // .ignore
507
+ & m_ignore,
508
+ // .customignore
509
+ & m_custom_ignore,
510
+ // Manually added ignores
511
+ & m_explicit,
512
+ ] ;
513
+
514
+ for ( idx, check) in order. into_iter ( ) . enumerate ( ) {
515
+ if check. is_none ( ) {
516
+ continue ;
517
+ }
518
+
519
+ let remaining = & order[ idx + 1 ..] ;
520
+ if check. is_ignore ( ) {
521
+ if remaining. iter ( ) . any ( |other| other. is_whitelist ( ) ) {
522
+ continue ;
523
+ }
524
+ } else if remaining. iter ( ) . any ( |other| other. is_ignore ( ) ) {
525
+ continue ;
526
+ }
527
+
528
+ return check. clone ( ) ;
529
+ }
530
+
531
+ m_explicit
505
532
}
506
533
507
534
/// Returns an iterator over parent ignore matchers, including this one.
Original file line number Diff line number Diff line change 16
16
17
17
use crate :: {
18
18
dir:: { Ignore , IgnoreBuilder } ,
19
- gitignore:: GitignoreBuilder ,
19
+ gitignore:: { Gitignore , GitignoreBuilder } ,
20
20
overrides:: Override ,
21
21
types:: Types ,
22
22
Error , PartialErrorBuilder ,
@@ -666,6 +666,11 @@ impl WalkBuilder {
666
666
errs. into_error_option ( )
667
667
}
668
668
669
+ /// Add a Gitignore to the builder.
670
+ pub fn add_gitignore ( & mut self , gi : Gitignore ) {
671
+ self . ig_builder . add_ignore ( gi) ;
672
+ }
673
+
669
674
/// Add a custom ignore file name
670
675
///
671
676
/// These ignore files have higher precedence than all other ignore files.
Original file line number Diff line number Diff line change 44
44
"bench" : " vitest bench" ,
45
45
"version-packages" : " node ./scripts/version-packages.mjs" ,
46
46
"vite" : " pnpm run --filter=vite-playground dev" ,
47
- "nextjs" : " pnpm run --filter=nextjs-playground dev" ,
48
- "postinstall" : " cargo install patch-crate; cargo patch-crate"
47
+ "nextjs" : " pnpm run --filter=nextjs-playground dev"
49
48
},
50
49
"license" : " MIT" ,
51
50
"devDependencies" : {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments