Comments (15)
I still cannot figure out what is going on. There seems to be two issues:
-
From looking at the verbose log, when there's a
.stow-global-ignore
,~/.stow-global-ignore
seems to be ignored. -
When I have
.*\.env
in both files, it still does not get ignored.
...
Using ignore file: ../../.dotfiles/.bin/scripts/.stow-local-ignore
Using memoized regexps from ../../.dotfiles/.bin/scripts/.stow-local-ignore
Ignore list regexp for paths: /(?^:(^|/)(^/\.stow\-local\-ignore$)(/|$))/
Ignore list regexp for segments: /(?^:^(src|.*\.env|dir_colors)$)/
Not ignoring dynu.sh
Stowing ../../.dotfiles/.bin / scripts / dynu.sh
=> ../../.dotfiles/.bin/scripts/dynu.sh
is_a_link(dynu.sh)
link_task_action(dynu.sh): link task exists with action remove
is_a_link(dynu.sh): returning 0 (remove action found)
is_a_node(dynu.sh)
link_task_action(dynu.sh): link task exists with action remove
dir_task_action(dynu.sh): no task
LINK: dynu.sh => ../../.dotfiles/.bin/scripts/dynu.sh (reverts previous action)
from stow.
I confirm the problem.
The .stow-local-ignore rules override the .stow-global-ignore rules. The ideal would be a mix of the two files.
version: from source (4ef5eca)
from stow.
from stow.
from stow.
Can anybody else confirm that ~/.stow-global-ignore
doesn't work? Does anybody know if it worked in any previous versions? I could consider downgrading to an earlier version if it doesn't have the issues of the current version and if that version doesn't lack any features that I use.
from stow.
Thanks for confirming this. I use this program heavily, so I'm really looking forward to someone fixing the little bugs present in the current version.
from stow.
Me trying to be helpful:
https://metacpan.org/pod/File::Cmp
?
from stow.
The root of the problem is apparently here (line 1290). It returns the first rule it finds. the ideal would be to end the file checking loop while concatenating what exists.
What prevents this from being quickly fixed by me is time and experience with perl. I'm just a perl hobbyist. And I happen to use stow extensively as well. I hope to fix it soon or maybe some collaborator will help with this too.
Lines 1273 to 1299 in 4ef5eca
from stow.
Ask on StackOverflow?
from stow.
Related Issues (20)
- How to know that `stow` skip pointing symlink to destination since it already exists?
- make it possible to stow to a "flattened" file hierarchy (containing symlinks) HOT 2
- What changes cwd to the target directory during init of Stow? HOT 4
- cannot stow ".gitignore" HOT 8
- Stow a absolute symlink HOT 3
- Dotfiles doesn't work with adopt
- --dotfiles missing from usage()
- [[email protected]] An error is reported during the execution of self-test cases. HOT 3
- `stow --simulate` should show `--adopt` actions HOT 2
- `stow --simulate` should warn when `-v` is not specified HOT 6
- Can GNU Stow use a stow target directory that is a symbolic link? HOT 2
- Investigate ditching Stow's pre-processing phase of installation HOT 1
- .stow-local-ignore: stow does not ignore file when parent directory does not exist
- Why was the no-folding-per-pkg branch abandoned?
- Failed to install because ls HOT 1
- make install fails | installation in docker container HOT 2
- Request build flag to turn off docs creation HOT 2
- Docs build error HOT 1
- --override not working HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stow.