Closed etnt closed 5 years ago
Thanks, will fix shortly. How did you find it? Is there a scenario I can run to try to cause a failure from this?
Well, I'm in the progress of upgrading our use of Yaws to the latest and ran into this because of a test case of ours that checks that the error logs are empty. The reason for ending up in this part of the code (i.e writing the file went ok, but compilation failed), was caused by the fact that in our release packages those Yaws .hrl files, that the generated code is including, are not part of our release package.
Regarding the 'generate' trick of yaws_dynopts.erl, I have some suggestions:
I wonder how much is gained in performance by having this file generated like this? (we are considering to simply remove this generate step in our release builds)
Regarding your suggestions:
My answer to number 1 means questions 2 and 3 are moot, but I also wanted to note for 2 that even if we modified the module to call yaws_api
, we'd still need the .hrl
dependency to bring in the gconf
record definition.
https://github.com/klacke/yaws/blob/6ad15183e3783566b3e3a217aaffe9b59cc8c6ab/src/yaws_dynopts.erl#L232