Skip to content
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

Including two files by the same name results in duplication of the first file #51

Closed
tecosaur opened this issue Apr 17, 2023 · 1 comment

Comments

@tecosaur
Copy link

tecosaur commented Apr 17, 2023

I'm using SVG v2.02, and I've just run into a bug where I'm doing the following:

\includesvg{subdir1/drawing.svg}
\includesvg{subdir2/drawing.svg}

This results in subdir1/drawing.svg being inserted twice, which isn't right...

Looking at the svg-inkscape directory, it's clear that only the file name is being used as a cache key, leading to incorrect results when files by the same name appear in different directories.

In this case, it was easy enough for me to rename one of the files, but it would be good if the cache mechanism could be adjusted to make the entire path part of the key (by hashing it for instance, e.g. 3a406d0e_drawing_svg-raw.pdf instead of drawing_svg-raw.pdf).

@mrpiggi
Copy link
Owner

mrpiggi commented Apr 17, 2023

See #11 (comment)

Sorry, that I didn't tackle some enhancements so far, but I am really lacking time (for years...)

@mrpiggi mrpiggi closed this as not planned Won't fix, can't repro, duplicate, stale Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants