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
[update] haml dependency #1044
Comments
I run Brakeman in CI with a rake task
After updating HAML from 4.0.7 to 5.0.0, Brakeman has been failing with:
Brakeman 3.6.1 and 3.6.0 and HAML 5.0.0, works in 4.0.7. You mentioned in #1043 that this should work -- since I'm Thanks! |
I recommend not using Rake to run Brakeman, as it will load your entire Rails application and cause odd issues like this. Unfortunately there is no way of making Brakeman compatible with all possible permutations of application dependencies. That's why I started vendoring/bundling Brakeman's dependencies (more info here). It is safe to put Brakeman in your |
That's fair. I'll change it to shell out. All I care about is that output file anyway. Thanks! |
I had similar errors with running brakeman from a Rake task |
@jekuno is that error only occurring when you use a Rake task? |
Yes. Running it from command line works without any problems. |
I was getting the following error after upgrading to haml 5 when I had
added |
Turns out Haml 5.x totally changes what the compiled Haml looks like, which means a big change to how Brakeman handles it. |
We were getting HAML errors; this is down to brakeman not being able to keep track of every possible dependency and needing to be run in its own process so as to not load the world (including HAML which is causing the problem in this instance) presidentbeef/brakeman#1044
We were getting HAML errors; this is down to brakeman not being able to keep track of every possible dependency and needing to be run in its own process so as to not load the world (including HAML which is causing the problem in this instance) presidentbeef/brakeman#1044
haml was recently updated: https://github.com/haml/haml/releases/tag/v5.0.0
opened a PR #1043
The text was updated successfully, but these errors were encountered: