When running preGenerateCommands, dub will already re-evaluate all the globs and variables from the dub recipe, however it will never actually re-parse the dub recipe. I think if the recipe has changed (modification time), we should also re-parse the recipe, so that more advanced use-cases that edit the recipe are possible.
Note that dub right now only considers itself, not dependencies or dependents when running preGenerateCommands, which is a limitation that keeps the implementation sane though.
When running preGenerateCommands, dub will already re-evaluate all the globs and variables from the dub recipe, however it will never actually re-parse the dub recipe. I think if the recipe has changed (modification time), we should also re-parse the recipe, so that more advanced use-cases that edit the recipe are possible.
Note that dub right now only considers itself, not dependencies or dependents when running preGenerateCommands, which is a limitation that keeps the implementation sane though.