-
Notifications
You must be signed in to change notification settings - Fork 31
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
resolver.workspace_from_url: cover relative paths, too #266
Conversation
Codecov Report
@@ Coverage Diff @@
## master #266 +/- ##
==========================================
+ Coverage 93.13% 99.45% +6.32%
==========================================
Files 30 30
Lines 1485 1279 -206
Branches 287 248 -39
==========================================
- Hits 1383 1272 -111
+ Misses 91 6 -85
+ Partials 11 1 -10
Continue to review full report at Codecov.
|
Urgently needed, for example for tests in OCR-D/ocrd_keraslm#7. |
#303 should have fixed the issue here. Regressions are always possible, please open an issue if problem persists, thanks. |
I am still having problems with a simple
So, looking at your solution in #303 (i.e. keeping
|
This (at least partially) fixes #96, i.e.
workspace_from_url
failing to download files that had relative paths. The reason was thatworkspace.download_file
does not know anything aboutbaseurl
, i.e. it cannot concatenate the source path before copying locally. In contrast,download_url
does wrap this case correctly.