MrcSnm / redub

Alternative implementation of dub, speed and consistency oriented
https://code.dlang.org/packages/redub
MIT License
37 stars 8 forks source link

Don't show warnings when executing redub via dub #27

Closed nordlow closed 1 week ago

nordlow commented 1 week ago

I'm currently calling redub via wrapper script redub containing

#!/usr/bin/env bash

set -uo pipefail

DC="${DC:-$(command -v ldc2 >/dev/null 2>&1 && echo ldc2 || echo dmd)}"

exec dub -q run --build=release --compiler="${DC}" redub@~main -- "$@"

. This outputs warning

     Warning 
     Warning ## Warning for package redub ##
     Warning 
     Warning The following compiler flags have been specified in the package description
     Warning file. They are handled by DUB and direct use in packages is discouraged.
     Warning Alternatively, you can set the DFLAGS environment variable to pass custom flags
     Warning to the compiler, or use one of the suggestions below:
     Warning 
     Warning debugMode: Call DUB with --build=debug
     Warning debugInfo: Call DUB with --build=debug
     Warning 

before at startup before any other messages are printed. I'd like these warnings not to be printed.

nordlow commented 1 week ago

Awesome.