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
Complain if a filesystem file with an absolute path is accessed #8
Comments
CC #31, #36, #50 — looks like we're going to need to spend some time on the local-filesystem access code paths, which would be a good time to add a warning here. We should probably also add a warning if a filesystem path is accessed outside of the "document root", i.e. if someone tries to open |
rustfmt & literals
Finally fixed in #911! |
@pkgw How can one avoid such warnings? I'm getting warning such as:
|
@malbarbo Currently there isn't a way to disable the warning, but one could certainly be added. I'm curious about your use case. I presume that you're doing builds in some Nix setup where absolute paths are working their way into the system? (I hardly know anything about Nix, I'm afraid.) Do you think it is possible (even if annoying/undesirable) to reorganize your document and/or build process to avoid the absolute paths? |
@pkgw I do not have any specific configuration or use case, the warning show up with a minimal example. To reproduce the issue start the nixos iso in a virtual machine, download the latest tectonic and build the following example \documentclass{beamer}
\usetheme{metropolis}
\begin{document}
\end{document} Note that the warnings are only generated when using metropolis theme. |
Thank you for the minimal example @malbarbo. The issue isn't NixOS specific, it's #9 (see #965, in particular #965 (comment)). The only problem is that for example in the case of As a proof of concept, I can replace it with my own version: beamerfontthememetropolis.sty (placed so that Tectonic can find it, for example in the same directory as the compiled file when Upstream already knows about this for 5 years (matze/mtheme#280), so getting a fix there is probably infeasible. Resolving #9 should solve this |
It sounds like this is another case where a patch in the Tectonic bundle (via the tectonic-texlive-repos repo) would make sense. |
The idea is that we want to identify when the document compilation requires "external" ("system"?) files that may make the document build not reproducible. I think there's a way to do this that's helpful but doesn't make the user experience too annoying. We probably just want to warn on the first system file rather than each one, since I expect that the usual case for this will be system fonts, which usually involves accessing a whole bunch of related files in a group.
The text was updated successfully, but these errors were encountered: