-
-
Notifications
You must be signed in to change notification settings - Fork 104
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
[bug] application/javascript
files treated as binary file
#396
Comments
Thanks for reporting this. I tried running the Even though
|
The above commit should fix it for you. Could you test dotdrop from the master branch and let me know if that does it for you? |
Yeah, the change above ensures that |
@acourtneybrown awesome! Thanks for your help. I'll release a new version on pypi ASAP and will ping you when done. |
@acourtneybrown new version 1.13.2 is available on pypi. |
Dotdrop version (and git commit if run from source): v1.13.0
Using dotdrop: from Homebrew
Describe the bug
The
_handle_file
method intemplategen.py
treats files with mime-typeapplication/javascript
as a binary file, thus only copying it directly vs. running the file through the templating engine. I'm uncertain if this recent bug is due to a change indotdrop
or the underlyingmagic
library, as my setup had previously worked with version ofdotdrop
prior to1.13.0_1
(from Homebrew), but now I see the same incorrect behavior with1.13.0
&1.12.13
Steps to Reproduce
Steps to reproduce the behavior:
application/javascript
which also has template directives & has thetemplate
property eithertrue
or inheritedtrue
.dotdrop install
on the fileExpected behavior
The file should be run through the templating engine & the template directives should not appear in the resulting output file.
Additional information
From
acourtneybrown/dotfiles
:which uses
finicky.js
(from the same repo) containingtemplate directives
like:Dotdrop's execution with the debug logs (
--verbose
)contains output showing the misidentification of the
application/javascript
file as not text:The text was updated successfully, but these errors were encountered: