-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
I've been using tmignore happily in the past, it always worked well but in the recent backup, I see several node_modules using the BackupLoupe utility:
The yarn-install-demo is actually this public repo: https://github.com/borekb/yarn-install-demo where you can see two .gitignore files:
I did a quick tmignore check which looks alright:
$ tmignore list | rg 'yarn-install-demo'
- /Users/borekb/dev/borekb/yarn-install-demo/packages-v1/app/node_modules/
- /Users/borekb/dev/borekb/yarn-install-demo/packages-v1/lib/node_modules/
- /Users/borekb/dev/borekb/yarn-install-demo/packages-v1/node_modules/
- /Users/borekb/dev/borekb/yarn-install-demo/packages-v2/.yarn/build-state.yml
- /Users/borekb/dev/borekb/yarn-install-demo/packages-v2/.yarn/cache/
- /Users/borekb/dev/borekb/yarn-install-demo/packages-v2/.yarn/install-state.gz
- /Users/borekb/dev/borekb/yarn-install-demo/packages-v2/app/node_modules/
- /Users/borekb/dev/borekb/yarn-install-demo/packages-v2/lib/node_modules/
- /Users/borekb/dev/borekb/yarn-install-demo/packages-v2/node_modules/
How comes that .yarn cache files are excluded from the backup but node_modules aren't? I also ran this, which again contained only .yarn/* entries and no node_modules entries:
$ find /Users/borekb/dev/borekb/yarn-install-demo -exec tmutil isexcluded {} + | grep -F "[Excluded]" | sed -E 's/^\[Excluded\][[:space:]]*//'
/System/Volumes/Data/Users/borekb/dev/borekb/yarn-install-demo/packages-v2/.yarn/cache
/System/Volumes/Data/Users/borekb/dev/borekb/yarn-install-demo/packages-v2/.yarn/cache/fb-watchman-npm-2.0.0-98fd97d6b7-192298457e.zip
/System/Volumes/Data/Users/borekb/dev/borekb/yarn-install-demo/packages-v2/.yarn/cache/elegant-spinner-npm-1.0.1-8b799f39a6-69837a8a88.zip
...
(The yarn-install-demo folder on my disk is about 3 days old while the Time Machine backup was run 1 hour ago, so there shouldn't be any problem with the node_modules folder not being known to tmignore yet.)
Any ideas?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
