RejectedSoftware Forums

Sign up

Very weird naming errors about local package

Using DUB version 0.9.21

I've attempted to add-local a package, but now I'm getting weird errors. It's for this repo.

I get:

C:\dev\dchip>dub
Local package at C:\dev\dchip\examples\simple has different name than dchip:simple (simple)
Local package at C:\dev\dchip\examples\demo has different name than dchip:demo (demo)
Local package at C:\dev\dchip\examples\old_demo has different name than dchip:old_demo (old_demo)

It sounds like it wants me to explicitly name the subpackages as e.g. dchip:simple rather than simple. So I tried to renaming all 3 subpackages (their name fields, e.g. "name": "dchip:demo",), but then I get:

C:\dev\dchip>dub
Local package at C:\dev\dchip\examples\simple has different name than dchip:simple (dchip:dchip:simple)

What the heck? And now it's an error for just one of the subpackages?

I can't even seem to remove the local path anymore:

C:\dev\dchip>dub remove-local %CD%
Local package at C:\dev\dchip\examples\simple has different name than dchip:simple (dchip:dchip:simple)

Re: Very weird naming errors about local package

On Sun, 25 Jan 2015 20:25:42 GMT, Andrej Mitrovic wrote:

Using DUB version 0.9.21

I've attempted to add-local a package, but now I'm getting weird errors. It's for this repo.

Here's what the config file looks like that dub generated:

[
	{
		"version": "~master",
		"path": "C:\\dev\\dchip",
		"name": "dchip"
	},
	{
		"version": "~master",
		"path": "C:\\dev\\dchip\\examples\\simple",
		"name": "dchip:simple"
	},
	{
		"version": "~master",
		"path": "C:\\dev\\dchip\\examples\\demo",
		"name": "dchip:demo"
	},
	{
		"version": "~master",
		"path": "C:\\dev\\dchip\\examples\\old_demo",
		"name": "dchip:old_demo"
	}
]

I guess the add-local feature wasn't as well tested when subpackages are involved? :)

Re: Very weird naming errors about local package

On Sun, 25 Jan 2015 20:25:42 GMT, Andrej Mitrovic wrote:

Using DUB version 0.9.21

Can you please try 0.9.22 instead?
It might also be related to a recent fix.
https://github.com/D-Programming-Language/dub/issues/448

Re: Very weird naming errors about local package

Am 03.02.2015 um 04:37 schrieb Martin Nowak:

On Sun, 25 Jan 2015 20:25:42 GMT, Andrej Mitrovic wrote:

Using DUB version 0.9.21

Can you please try 0.9.22 instead?
It might also be related to a recent fix.
https://github.com/D-Programming-Language/dub/issues/448

I've just tested and it's indeed fixed for 0.9.22.