RejectedSoftware Forums

Sign up

Detecting changes in external scripts

It would be helpful and very convenient, if there was an option in DUB config file to list all externally called scripts (from pre/post-generate/build commands). This would server to monitor them for modification and if there was a modification, DUB would be enforced rebuild. Today, if none of dub.json and/or source files are modified, DUB runs the package instead of building it, if a modification was done only in a script called from pre-generate/build command.

What do you think?

Re: Detecting changes in external scripts

On Wed, 02 Nov 2016 21:18:12 GMT, Ľudovít Lučenič wrote:

It would be helpful and very convenient, if there was an option in DUB config file to list all externally called scripts (from pre/post-generate/build commands). This would server to monitor them for modification and if there was a modification, DUB would be enforced rebuild. Today, if none of dub.json and/or source files are modified, DUB runs the package instead of building it, if a modification was done only in a script called from pre-generate/build command.

What do you think?

Detecting the scripts that are actually used is going to be a difficult task in general, because arbitrary shell syntax is allowed. But at least a manual way to make the dependency tracking work would be good to have. Something like a "dependencyFiles" fields where the scripts can be listed as non-source file dependencies.

Re: Detecting changes in external scripts

On Thu, 10 Nov 2016 09:06:26 GMT, Sönke Ludwig wrote:

What do you think?

Detecting the scripts that are actually used is going to be a difficult task in general, because arbitrary shell syntax is allowed. But at least a manual way to make the dependency tracking work would be good to have. Something like a "dependencyFiles" fields where the scripts can be listed as non-source file dependencies.

Thank you very much Sönke for your answer. How do you track this feature request not to stay forgotten?

Re: Detecting changes in external scripts

On Mon, 13 Feb 2017 10:04:04 GMT, Ľudovít Lučenič wrote:

On Thu, 10 Nov 2016 09:06:26 GMT, Sönke Ludwig wrote:

What do you think?

Detecting the scripts that are actually used is going to be a difficult task in general, because arbitrary shell syntax is allowed. But at least a manual way to make the dependency tracking work would be good to have. Something like a "dependencyFiles" fields where the scripts can be listed as non-source file dependencies.

Thank you very much Sönke for your answer. How do you track this feature request not to stay forgotten?

Opened #1117