www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Dub and Unit_Threaded

This seems nonsensical to me. Why is Dub using the correct (0.10.8) version=
 of
Unit_Threaded for building the tests, but then using an earlier version
(0.10.6) for building and running the test. If I remove 0.10.6 from the
.dub/packages directory, then it uses 0.10.8 correctly. Then it complains
about DFLAGS for reasons unknown.

Yours Confused of Clapham Junciton.


|> dub test
Running custom 'unittest' configuration.
Performing "unittest" build using /usr/bin/ldc2 for x86_64.
gtk-d:gtkd 3.9.0: target for configuration "library" is up to date.
unit-threaded:from 0.10.8: target for configuration "library" is up to date=
.
unit-threaded:exception 0.10.8: building configuration "library"...
unit-threaded:assertions 0.10.8: building configuration "library"...
unit-threaded:integration 0.10.8: building configuration "library"...
unit-threaded:mocks 0.10.8: building configuration "library"...
unit-threaded:property 0.10.8: building configuration "default"...
unit-threaded:runner 0.10.8: building configuration "library"...
unit-threaded 0.10.8: building configuration "library"...
arcamclient ~master: building configuration "unittest"...
Running pre-build commands...
Building package unit-threaded in /home/users/russel/.dub/packages/unit-
threaded-0.10.6/unit-threaded/
Performing "$DFLAGS" build using /usr/bin/ldc2 for x86_64.
unit-threaded:from 0.10.6: building configuration "library"...
unit-threaded:exception 0.10.6: building configuration "library"...
unit-threaded:assertions 0.10.6: building configuration "library"...
unit-threaded:integration 0.10.6: building configuration "library"...
unit-threaded:mocks 0.10.6: building configuration "library"...
unit-threaded:property 0.10.6: building configuration "library"...
unit-threaded:runner 0.10.6: building configuration "library"...
unit-threaded 0.10.6: building configuration "gen_ut_main"...
Linking...
Running ../../../../../.dub/packages/unit-threaded-0.10.6/unit-
threaded/gen_ut_main -f bin/ut.d -d /usr/bin/dub
Building package arcamclient:mock_avr850 in
/home/users/russel/Repositories/Git/Masters/Private/ArcamClient_D/
Performing "$DFLAGS" build using /usr/bin/ldc2 for x86_64.
arcamclient:mock_avr850 ~master: building configuration "application"...
Linking...
Linking...
To force a rebuild of up-to-date targets, run again with --force.
Invalid variable: DFLAGS


--=20
Russel.
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Dr Russel Winder      t: +44 20 7585 2200
41 Buckmaster Road    m: +44 7770 465 077
London SW11 1EN, UK   w: www.russel.org.uk
May 11 2020