File tree Expand file tree Collapse file tree 7 files changed +43
-98
lines changed Expand file tree Collapse file tree 7 files changed +43
-98
lines changed Original file line number Diff line number Diff line change @@ -119,9 +119,7 @@ jobs:
119119 run : rustup target add ${{ matrix.target }}
120120
121121 - name : Install dependencies
122- run : |
123- pnpm install --ignore-scripts --filter=!./playgrounds/*
124- pnpm postinstall
122+ run : pnpm install --ignore-scripts --filter=!./playgrounds/*
125123
126124 - name : Build release
127125 run : pnpm run --filter ${{ env.OXIDE_LOCATION }} build
@@ -168,7 +166,6 @@ jobs:
168166 ./rustup-init -y --profile minimal
169167 source "$HOME/.cargo/env"
170168 pnpm install --ignore-scripts --filter=!./playgrounds/* || true
171- pnpm postinstall
172169 echo "~~~~ rustc --version ~~~~"
173170 rustc --version
174171 echo "~~~~ node -v ~~~~"
Original file line number Diff line number Diff line change @@ -118,9 +118,7 @@ jobs:
118118 run : rustup target add ${{ matrix.target }}
119119
120120 - name : Install dependencies
121- run : |
122- pnpm install --ignore-scripts --filter=!./playgrounds/*
123- pnpm postinstall
121+ run : pnpm install --ignore-scripts --filter=!./playgrounds/*
124122
125123 - name : Build release
126124 run : pnpm run --filter ${{ env.OXIDE_LOCATION }} build
@@ -173,7 +171,6 @@ jobs:
173171 echo "~~~~ pnpm --version ~~~~"
174172 pnpm --version
175173 pnpm install --ignore-scripts --filter=!./playgrounds/* || true
176- pnpm postinstall
177174 pnpm run --filter ${{ env.OXIDE_LOCATION }} build
178175 strip -x ${{ env.OXIDE_LOCATION }}/*.node
179176 ls -la ${{ env.OXIDE_LOCATION }}
Original file line number Diff line number Diff line change @@ -118,9 +118,7 @@ jobs:
118118 run : rustup target add ${{ matrix.target }}
119119
120120 - name : Install dependencies
121- run : |
122- pnpm install --ignore-scripts --filter=!./playgrounds/*
123- pnpm postinstall
121+ run : pnpm install --ignore-scripts --filter=!./playgrounds/*
124122
125123 - name : Build release
126124 run : pnpm run --filter ${{ env.OXIDE_LOCATION }} build
@@ -173,7 +171,6 @@ jobs:
173171 echo "~~~~ pnpm --version ~~~~"
174172 pnpm --version
175173 pnpm install --ignore-scripts --filter=!./playgrounds/* || true
176- pnpm postinstall
177174 pnpm run --filter ${{ env.OXIDE_LOCATION }} build
178175 strip -x ${{ env.OXIDE_LOCATION }}/*.node
179176 ls -la ${{ env.OXIDE_LOCATION }}
Original file line number Diff line number Diff line change @@ -496,12 +496,39 @@ impl Ignore {
496496 Match :: None
497497 } ;
498498
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
505532 }
506533
507534 /// Returns an iterator over parent ignore matchers, including this one.
Original file line number Diff line number Diff line change 1616
1717use crate :: {
1818 dir:: { Ignore , IgnoreBuilder } ,
19- gitignore:: GitignoreBuilder ,
19+ gitignore:: { Gitignore , GitignoreBuilder } ,
2020 overrides:: Override ,
2121 types:: Types ,
2222 Error , PartialErrorBuilder ,
@@ -666,6 +666,11 @@ impl WalkBuilder {
666666 errs. into_error_option ( )
667667 }
668668
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+
669674 /// Add a custom ignore file name
670675 ///
671676 /// These ignore files have higher precedence than all other ignore files.
Original file line number Diff line number Diff line change 4444 "bench" : " vitest bench" ,
4545 "version-packages" : " node ./scripts/version-packages.mjs" ,
4646 "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"
4948 },
5049 "license" : " MIT" ,
5150 "devDependencies" : {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments