www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - DUB warnings causing failure?

reply =?UTF-8?B?Ik5vcmRsw7Z3Ig==?= <per.nordlow gmail.com> writes:
My

https://github.com/nordlow/justd/blob/master/dub.json

fails as

WARNING: A deprecated branch based version specification is used 
for the dependency dchip. Please use numbered versions instead. 
Also note that you can still use the dub.selections.json file to 
override a certain dependency to use a branch instead.
WARNING: A deprecated branch based version specification is used 
for the dependency libnoise-d. Please use numbered versions 
instead. Also note that you can still use the dub.selections.json 
file to override a certain dependency to use a branch instead.
WARNING: A deprecated branch based version specification is used 
for the dependency vibe-d. Please use numbered versions instead. 
Also note that you can still use the dub.selections.json file to 
override a certain dependency to use a branch instead.
WARNING: A deprecated branch based version specification is used 
for the dependency gfm. Please use numbered versions instead. 
Also note that you can still use the dub.selections.json file to 
override a certain dependency to use a branch instead.
WARNING: A deprecated branch based version specification is used 
for the dependency dstats. Please use numbered versions instead. 
Also note that you can still use the dub.selections.json file to 
override a certain dependency to use a branch instead.
WARNING: A deprecated branch based version specification is used 
for the dependency hap. Please use numbered versions instead. 
Also note that you can still use the dub.selections.json file to 
override a certain dependency to use a branch instead.
Building dchip ~master configuration "library", build type debug.
Running dmd...
../../.dub/packages/dchip-master/src/dchip/cpCollision.d(350): 
Warning: instead of C-style syntax, use D-style syntax 
'MinkowskiPoint[3] hull'
FAIL 
../../.dub/packages/dchip-master/.dub/build/library-debug-linux.posix-x86_64-dmd_2067-0A8B6392623CA
68032F32F74AA959F6/ 
dchip staticLibrary
Error executing command run: dmd failed with exit code 1.

Why?

Shouldn't

"buildRequirements": ["allowWarnings"],

alleviate this?
Sep 28 2014
next sibling parent =?UTF-8?B?Ik5vcmRsw7Z3Ig==?= <per.nordlow gmail.com> writes:
On Sunday, 28 September 2014 at 14:31:33 UTC, Nordlöw wrote:
 https://github.com/nordlow/justd/blob/master/dub.json

 fails as
Shouldn't "buildRequirements": ["allowWarnings"], affect build rules of dependencies aswell?
Sep 28 2014
prev sibling parent Mike Parker <aldacron gmail.com> writes:
On 9/28/2014 11:31 PM, "Nordlöw" wrote:

 Running dmd...
 ../../.dub/packages/dchip-master/src/dchip/cpCollision.d(350): Warning:
 instead of C-style syntax, use D-style syntax 'MinkowskiPoint[3] hull'
 FAIL
 ../../.dub/packages/dchip-master/.dub/build/library-debug-linux.posix-x86_64-dmd_2067-0A8B6392623CA068032F32F74AA959F6/
 dchip staticLibrary
 Error executing command run: dmd failed with exit code 1.

 Why?

 Shouldn't

 "buildRequirements": ["allowWarnings"],

 alleviate this?
The dub warnings aren't causing the failure. dmd is being called. That's where the last warning is coming from and that appears to be causing the failure. --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com
Sep 28 2014