dub icon indicating copy to clipboard operation
dub copied to clipboard

dub run does not work with gdc out of the box.

Open baryluk opened this issue 1 year ago • 2 comments

System information

  • dub version: 1.36.0-3
  • OS Platform and distribution: Linux Debian amd64
  • compiler version gdc 13

Bug Description

dub run does not work with gdc out of the box.

See below

How to reproduce?

user@debian:~$ dub run dfmt -- -h
             Package 'dfmt' was not found locally but is available online:
             ---
             Description: Dfmt is a formatter for D source code
             Version: 0.15.1
             ---
Do you want to fetch 'dfmt' now? [Y/n]: 
    Fetching dfmt 0.15.1
             Building package dfmt in /home/user/.dub/packages/dfmt/0.15.1/dfmt/
    Fetching libdparse 0.24.0 (getting selected version)
     Warning Invalid source/import path: /home/user/.dub/packages/dfmt/0.15.1/dfmt/bin
    Starting Performing "debug" build using /usr/bin/gdc for x86_64.
    Building libdparse 0.24.0: building configuration [library]
    Building dfmt 0.15.1: building configuration [application]
   Pre-build Running commands
     Warning Invalid source/import path: /home/user/.dub/packages/dfmt/0.15.1/dfmt/bin
gdc: error: unrecognized command-line option ‘-run’
Error Command failed with exit code 1: /usr/bin/gdc -run "/home/user/.dub/packages/dfmt/0.15.1/dfmt/dubhash.d"

baryluk avatar Jul 27 '24 18:07 baryluk