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
Extra paths for shared resources #1106
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1106 +/- ##
=======================================
Coverage 46.35% 46.35%
=======================================
Files 171 171
Lines 65136 65149 +13
=======================================
+ Hits 30191 30200 +9
- Misses 34945 34949 +4 ☔ View full report in Codecov by Sentry. |
FWIW, in the referenced thread, I added a patch which restricts the path to relative paths using https://github.com/ratmice/tectonic/tree/extrapaths |
Do we really want to do this? I don't see a reason to restrict input to relative paths, it's generally known that absolute paths will break on different systems. |
We generally know my opinion, but I wanted to add some additional context. What I should probably say is not just relative paths but specifically subpaths of the And we could always add some form of escape hatch like |
Ah, I see. I'd argue against this: there's no need to enforce reproducibility that strictly. Tectonic should have reproducible defaults & easy-to-track bundles, but I don't see a reason to enforce relative paths. In fact, if you need this feature, you'll most certainly be using assets outside of the root |
Mostly I've been using this with |
I see... but I'd still argue that strict relative path checks aren't necessary here---most use cases would raise "not reproducible" errors, as I detailed above. @pkgw, I think this is ready to merge! This is a small and non-breaking config API change, but consensus on the details would still be nice. |
For context, see the discussion in #985.
Closes #985.
TLDR:
This PR adds an
extra_paths
config key that allows a user to specify external resources.An example file tree and
Tectonic.toml
are below.