-
-
Notifications
You must be signed in to change notification settings - Fork 616
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attempt to fix Task not following symlinks #831
Attempt to fix Task not following symlinks #831
Conversation
5e32164
to
98ba3fd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @ilewin,
Given there's an issue open on mvdan/sh#843, I think we should not try to fix it when running shell commands and wait for a fix upstream.
Let's code the fix for the source calculation only.
Regarding the PR itself, please write a meaningful commit message and be careful with unnecessary changes to the codebase like changing new lines, commented code, etc (specially on files you didn't change). The diff should be on relevant code only.
internal/status/glob.go
Outdated
//fs, err := zglob.Glob(g) //Looks like this does not evaluate **/* glob correctly | ||
fs, err := filepath.Glob(g) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
filepath.Glob
does not support double star (foo/**/*.js
). We should keep using zglob.Glob
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, Thanks I will dig more.
Zglob does not follow symlinks so I will try to figure out how to have both ** and symlinks
mattn/go-zglob#3
98ba3fd
to
6e18872
Compare
…o evaluate symlinks
6e18872
to
2a67499
Compare
Thanks @ilewin! |
Please check if this could be a good solution for the described bug.