Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Choice of gen_ut_main #126

Closed
russel opened this issue Aug 10, 2018 · 6 comments
Closed

Choice of gen_ut_main #126

russel opened this issue Aug 10, 2018 · 6 comments

Comments

@russel
Copy link
Contributor

russel commented Aug 10, 2018

I have a dub.sdl with:

configuration "unittest" {
    targetType "executable"
    targetName "factorial-test"
    preBuildCommands "dub run unit-threaded -c gen_ut_main -- -f ut_main.d"
    mainSourceFile "ut_main.d"
    dependency "unit-threaded" version=">=0.7.49"
}

but when I run "dub test"

Running custom 'unittest' configuration.
Performing "unittest" build using /usr/bin/dmd for x86_64.
unit-threaded 0.7.49: target for configuration "library" is up to date.
factorial ~master: building configuration "unittest"...
Running pre-build commands...
Building package unit-threaded in /home/users/russel/.dub/packages/unit-threaded-0.7.32/unit-threaded/
Performing "$DFLAGS" build using /usr/bin/dmd for x86_64.
unit-threaded 0.7.32: target for configuration "gen_ut_main" is up to date.
To force a rebuild of up-to-date targets, run again with --force.
Running ../../../../.dub/packages/unit-threaded-0.7.32/unit-threaded/gen_ut_main -f ut_main.d
Linking...

why is it running ../../../../.dub/packages/unit-threaded-0.7.32/unit-threaded/gen_ut_main instead of ../../../../.dub/packages/unit-threaded-0.7.49/unit-threaded/gen_ut_main?

@atilaneves
Copy link
Owner

Because dub is buggy.

Delete the old version and it'll use the new one.

@russel
Copy link
Contributor Author

russel commented Aug 13, 2018

Do you know if there is a bug report against Dub for this? If not I'll post one.

@atilaneves
Copy link
Owner

I can't remember if I bothered. I've filed worse issues and they've not even been looked at.

@russel
Copy link
Contributor Author

russel commented Aug 13, 2018

If you were to post an issue, I'd be happy to rant and turn it into a Big Issue™

@atilaneves
Copy link
Owner

I'd say this bug is a much higher priority.

@russel
Copy link
Contributor Author

russel commented Aug 13, 2018

I'll join in on that one, but I'll post this problem as a new Dub bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants