ignore-sync
ignore-sync copied to clipboard
v7.0.1 BUG
rror: source `[]` not found before ignore pattern is found
at file:///C:/Users/babak/OneDrive/Documents/GitHub/babakfp.ir/node_modules/.pnpm/[email protected]/node_modules/ignore-sync/src/decodeIgnoreSyncFile.js:24:13
at Array.reduce (<anonymous>)
at decodeIgnoreSyncFile (file:///C:/Users/babak/OneDrive/Documents/GitHub/babakfp.ir/node_modules/.pnpm/[email protected]/node_modules/ignore-sync/src/decodeIgnoreSyncFile.js:11:53)
at async processIgnoreSyncFile (file:///C:/Users/babak/OneDrive/Documents/GitHub/babakfp.ir/node_modules/.pnpm/[email protected]/node_modules/ignore-sync/src/processIgnoreSyncFile.js:10:22)
at async Promise.all (index 0)
at async processDirectory (file:///C:/Users/babak/OneDrive/Documents/GitHub/babakfp.ir/node_modules/.pnpm/[email protected]/node_modules/ignore-sync/src/processDirectory.js:43:5)
at async startApp (file:///C:/Users/babak/OneDrive/Documents/GitHub/babakfp.ir/node_modules/.pnpm/[email protected]/node_modules/ignore-sync/src/app.js:25:5)
This issue was resolved after switching to v7.0.0
Can you provide a reproducible example?
git clone https://github.com/babakfp/babakfp.ir.git
cd babakfp.ir
git checkout ca3b1375f64ff53c65662db92025f6805fc886da
pnpm i
pnpm ignore-sync
That is a private repo, can u post the config file here?
Ops!
Here's a proper reproduction: https://github.com/babakfp/foray1010.ignore-sync.issues.726
It works fine on my side.
https://github.com/foray1010/ignore-sync/assets/44144724/df22e6f6-550c-46b0-9464-15332919392f
NodeJS: v20.6.1
PNPM: 8.6.12
NPM: 9.8.1
Windows 11