-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
fix: resolve ../ on pattern #21
Conversation
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
Codecov Report
@@ Coverage Diff @@
## main #21 +/- ##
==========================================
- Coverage 82.90% 81.96% -0.94%
==========================================
Files 2 2
Lines 117 122 +5
==========================================
+ Hits 97 100 +3
- Misses 12 13 +1
- Partials 8 9 +1
Continue to review full report at Codecov.
|
Another approach would be to pass the pattern to I think the default should definitely be the a FS that starts at the actual OS filesystem root (or on windows the volume of the current dirrectory if the path is relative and the volume in the pattern if the path is absolute). I don't like the name If users use their custom FS, their globs will have to respect the quirks that their FS implementations come with. Also what do we do about API stability as we already published a |
I tried to implement my approach and now I see that the behavior of |
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
Yeah breaking the api is a bad but in this case the v1 actually broke behavior we didn't intend to... imho we can bump feature and that should be ok. your idea to put the pattern on the options was a good one, done ✅ the custom fs thing I also gave a try and seems like a very big thing to implement... |
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
we had no tests for it, but it used to work on v0.
Also made the options accept a pattern as arg. Maybe we should even made
MaybeRootFS
default?