Bug 14661 – "Error executing command build: Unknown dependency: ddox" when building website

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dlang.org
Product
D
Version
D2
Platform
All
OS
Linux
Creation time
2015-06-07T22:56:00Z
Last change time
2015-06-18T16:54:34Z
Assigned to
nobody
Creator
dlang-bugzilla

Comments

Comment #0 by dlang-bugzilla — 2015-06-07T22:56:10Z
When trying a clean build of dlang.org today, I'm getting the following error: DFLAGS="-conf=/tmp/.stable_dmd-2.067.1/dmd2/linux/bin64/dmd.conf" ../dub-0.9.23/bin/dub build --nodeps --root=dpl-docs \ --compiler=/tmp/.stable_dmd-2.067.1/dmd2/linux/bin64/dmd Error executing command build: Unknown dependency: ddox make: *** [dpl-docs] Error 2 This appears to be a regression as I don't remember seeing this error before, but I haven't noticed it probably because it only manifests when trying a clean build.
Comment #1 by dlang-bugzilla — 2015-06-08T02:09:00Z
If I remove the --nodeps switch, I get: dtest@k3:~/Digger/repo/dlang.org$ DFLAGS="-conf=/tmp/.stable_dmd-2.067.1/dmd2/linux/bin64/dmd.conf" ../dub-0.9.23/bin/dub build --root=dpl-docs --compiler=/tmp/.stable_dmd-2.067.1/dmd2/linux/bin64/dmd Fetching memutils 0.3.1 (getting selected version)... Placing memutils 0.3.1 to /home/dtest/.dub/packages/... Fetching ddox 0.10.6 (getting selected version)... Placing ddox 0.10.6 to /home/dtest/.dub/packages/... Fetching vibe-d 0.7.23 (getting selected version)... Placing vibe-d 0.7.23 to /home/dtest/.dub/packages/... Fetching libevent 2.0.1+2.0.16 (getting selected version)... Placing libevent 2.0.1+2.0.16 to /home/dtest/.dub/packages/... Fetching openssl 1.1.4+1.0.1g (getting selected version)... Placing openssl 1.1.4+1.0.1g to /home/dtest/.dub/packages/... Fetching libev 5.0.0+4.04 (getting selected version)... Placing libev 5.0.0+4.04 to /home/dtest/.dub/packages/... Fetching libasync 0.7.1 (getting selected version)... Placing libasync 0.7.1 to /home/dtest/.dub/packages/... Error executing command build: no package file was found, expected one of the following: [immutable(FilenameAndFormat)("dub.json", json), immutable(FilenameAndFormat)("package.json", json)] dtest@k3:~/Digger/repo/dlang.org$ There is definitely a dub.json file under dpl-docs. I have no idea what it's complaining about.
Comment #2 by sludwig — 2015-06-09T19:11:40Z
Upon further inspection, this is caused by a bug in DUB 0.9.23 that has already been fixed on master: https://github.com/D-Programming-Language/dub/issues/564 The root cause is in a dependency that transiently in turn had unresolvable dependencies. This caused the upgrade suggestion check to error out. Both the error and the bad error message will be fixed for DUB 0.9.24. I didn't realize that it breaks the website build in such a bad way. The workaround is to first run "dub upgrade --missing-only" and only then build with "--nodeps" (I guess Martin added the --nodeps as a quick fix?). I'll also prepare a new DUB release including the fix ASAP.
Comment #3 by github-bugzilla — 2015-06-09T20:12:41Z
Commits pushed to master at https://github.com/D-Programming-Language/dlang.org https://github.com/D-Programming-Language/dlang.org/commit/1c4d0072f90e5b5fae3b0c25a450ddc50187f0d3 Issue 14661 - Add workaround for dpl-docs build failure https://github.com/D-Programming-Language/dlang.org/commit/74e083d85e6b2efcec2fb3233a720196700743cd Merge pull request #1017 from s-ludwig/master Issue 14661 - Add workaround for dpl-docs build failure
Comment #4 by github-bugzilla — 2015-06-18T16:54:34Z