Closed thomask77 closed 8 months ago
Follow up:
pycstruct also doesn't hash the input file contents!
So if the files change, pycstruct will yield wrong results when using the cache.
Hi!
Thank you for your feedback! I agree that a the user name should be used in the file name to avoid collisions with other users.
I think it would be quite complex to generate a hash based on contents since files that you parse might include other files (read by castxml) which pycstruct don't know about. You should avoid using use_cached unless you have a very stable data format that you know will not change.
Multi-user bug fixed in version 0.12.2.
Hi!
pystruct
always generates the same cache file name in/tmp
when the input files are the same:This breaks when multiple users on the same machine try to run pycstruct because of missing write permissions:
pycstruct
should at least include the current user name in the hash. And it should probably use random tmp file names if use_cached is False.