3

I use DUB, and want to include ncurses to project https://github.com/D-Programming-Deimos/ncurses/

it have not explicitly version specification on github page. But during build DUB ask me to specify version explicitly:

WARNING: A deprecated branch based version specification is used for the dependency ncurses. Please use numbered versions instead.

How I can do it?

Suliman
  • 1,469
  • 3
  • 13
  • 19

2 Answers2

3

http://code.dlang.org/package-format

Looks like your "DUB" tool is a later version than the tool used to create the 'package.json' file in the GIT repo. The message is rather obscure, but it's not a GIT message. It seems to mean that the 'ncurses' repo needs updating; send them a pull when you work out how.

user3710044
  • 2,261
  • 15
  • 15
3

This is dub complaining because the entry in your dub.json (or package.json) is "ncurses": "~master"

However, dub is trying to move away from using the "~master" branch (as it's prone to constant changes in most projects)

As the only available branch tag on ncurses is ~master you'll have to use it. I'm suprised that dub isn't working with the master branch however, as it's only a WARNING message, not ERROR.

Maybe pinging the owner of ncurses to create a tag may be a good idea?

Colin Grogan
  • 2,462
  • 3
  • 12
  • 12