如何强制 dub 安装更新版本的软件包?
How do I force dub to install a newer version of a package?
我一直在尝试使用 dub run
与较新的版本,但它不起作用,它只是重建旧版本。
$ dub run dpp@0.3.4
Fetching dpp 0.3.4...
Building package dpp in /Users/james/.dub/packages/dpp-0.3.1/dpp/
Performing "debug" build using /Library/D/dmd/bin/dmd for x86_64.
libclang 0.1.8: building configuration "library"...
sumtype 0.7.1: building configuration "library"...
dpp 0.3.1: building configuration "executable"...
Linking...
ld: warning: directory not found for option '-L/usr/lib/llvm-6.0/lib'
ld: warning: directory not found for option '-L/usr/lib/llvm-3.9/lib'
Running ../../../../.dub/packages/dpp-0.3.1/dpp/bin/d++
Error: No .dpp input file specified
Usage: d++ [options] [D compiler options] <filename.dpp> [D compiler args]
Program exited with code 1
dub cache-clean
也没有解决问题。
删除包含rm -rf
的包:
rm -rf ../../../../.dub/packages/dpp-0.3.1/
然后再运行:
$ dub run dpp@0.3.4 --force
我一直在尝试使用 dub run
与较新的版本,但它不起作用,它只是重建旧版本。
$ dub run dpp@0.3.4
Fetching dpp 0.3.4...
Building package dpp in /Users/james/.dub/packages/dpp-0.3.1/dpp/
Performing "debug" build using /Library/D/dmd/bin/dmd for x86_64.
libclang 0.1.8: building configuration "library"...
sumtype 0.7.1: building configuration "library"...
dpp 0.3.1: building configuration "executable"...
Linking...
ld: warning: directory not found for option '-L/usr/lib/llvm-6.0/lib'
ld: warning: directory not found for option '-L/usr/lib/llvm-3.9/lib'
Running ../../../../.dub/packages/dpp-0.3.1/dpp/bin/d++
Error: No .dpp input file specified
Usage: d++ [options] [D compiler options] <filename.dpp> [D compiler args]
Program exited with code 1
dub cache-clean
也没有解决问题。
删除包含rm -rf
的包:
rm -rf ../../../../.dub/packages/dpp-0.3.1/
然后再运行:
$ dub run dpp@0.3.4 --force