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

Fix filename conflict #138

Merged
merged 2 commits into from
Oct 22, 2023

Conversation

levkk
Copy link
Contributor

@levkk levkk commented Oct 21, 2023

Fix #137

I'm honestly not sure what in 0.8.1 caused this issue to surface. Something around when template files are compiled maybe? It was synchronous before? Anyway... This works. Tested it on our project that has probably 30+ templates, many of which have the same file name.

Template filenames will now be gibberish mostly, but they weren't really useful in large projects anyway, since in our case they all started with same-file-name-as-everywhere-else-<hash>. Suggestions welcome here, maybe we could reproduce the same folder structure in the build directory as we have in src? Surely we can't name output files after the absolute path of the source file since we'll hit a filesystem filename size limit quickly. Thinking out loud. Currently, I added a comment into the generated file explaining where the source code of the template came from.

@vthg2themax
Copy link
Collaborator

@levkk Very Very Much Appreciated! I will get this merged right away, and once again thank you very much for your contribution! I am always saddened when changes break functionality, and appreciate your quick fix for getting our project up and going again!

@vthg2themax vthg2themax merged commit ef79697 into rust-sailfish:main Oct 22, 2023
8 of 9 checks passed
@levkk levkk deleted the levkk-fix-filename-conflict branch October 22, 2023 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0.8.1 broke the template compiler
2 participants