Bug 19839 – dub: running single-file package as pre generate command always rebuilds

Status
RESOLVED
Resolution
MOVED
Severity
enhancement
Priority
P1
Component
tools
Product
D
Version
D2
Platform
All
OS
All
Creation time
2019-04-30T20:12:54Z
Last change time
2019-04-30T20:18:08Z
Assigned to
No Owner
Creator
Jacob Carlborg

Comments

Comment #0 by doob — 2019-04-30T20:12:54Z
If a single-file Dub package is used as a pre generate command the project containing the pre generate command will always be rebuilt. This happens because the path to the single-file package is not correctly added to the package. This will later lead to the current directory, `.`, being added as a dependency instead of the path to single-file package. This happens to the DMD Dub package.
Comment #1 by doob — 2019-04-30T20:18:08Z