Skip to content

Redub fails to build mir-blas #39

@vabenil

Description

@vabenil

OS: Arch Linux
redub (built from git): Redub v1.21.3 - A reimagined DUB. Built With LDC v2.110 at Mar 1 2025

dub.json:

{
	"authors": [
		"Vabenil"
	],
	"copyright": "Copyright © 2025, Vabenil",
	"dependencies": {
		"mir-blas": "~>1.1.17"
	},
	"description": "A minimal D application.",
	"license": "proprietary",
	"name": "blas_test"
}

So, when I build any project with mir-blas as dependency I get:

[ vabenil@arch-pc: D/tests/blas_test ]$ redub
Fetching Package: mir-blas  version ~>1.1.17
Could not convert SDL->JSON The package 'mir-blas'. Exception
/home/vabenil/.dub/packages/mir-blas/1.1.17/mir-blas/dub.sdl:40: Unexpected '}', expected end of node
Internal Error: /home/vabenil/.dub/packages/mir-blas/1.1.17/mir-blas/dub.sdl:40: Unexpected '}', expected end of node

So seems pretty clear the error has to do with SDL to JSON conversion, checking the dub.sdl in mir blas it shows:

configuration "blas" {
	libs "blas" # CBLAS API assumed to be in BLAS
} // <---- line 40 here

Initially I thought that perhaps the current implementation of SDL to JSON didn't recognize # comments, but in the stripComments function it seems to be taken into consideration... So, I got no idea why this error happens.

That said though I additionally found in SDLang-D there can be comments that start with -- which doesn't seem to be taken into consideration in stripComments, seems like a potential future bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions