Dub says that there is an invalid semVer format, but I don't see how.
rikki cattermole
rikki at cattermole.co.nz
Sat Nov 20 01:01:05 UTC 2021
Don't use ~> for branches.
alpha at DESKTOP-RB97SA4 /tmp/dutils
$ dub build
Invalid SemVer format: stable.0.0
alpha at DESKTOP-RB97SA4 /tmp/dutils
$ nano dub.json
alpha at DESKTOP-RB97SA4 /tmp/dutils
$ dub build
Performing "debug" build using
C:\Tools\D\dmd_2.097.2\windows\bin\dmd.exe for x86_64.
dutils 0.1.2-beta.2+commit.9.g359c59d: building configuration
"library"...
Error: module `package` is in file 'package.d' which cannot be read
import path[0] = source
import path[1] = C:\Tools\D\dmd_2.097.2\windows\bin\..\..\src\phobos
import path[2] =
C:\Tools\D\dmd_2.097.2\windows\bin\..\..\src\druntime\import
C:\Tools\D\dmd_2.097.2\windows\bin\dmd.exe failed with exit code 1.
alpha at DESKTOP-RB97SA4 /tmp/dutils
$ cat dub.json
{
"authors": [
"Ruby The Roobster"
],
"copyright": "Copyright © 2021, Ruby The Roobster",
"description": "A collection of modules in the D Programming
Language that people may find useful.",
"license": "GLP-3.0",
"name": "dutils",
"importPaths": ["./source"],
"sourceFiles": ["package.d"],
"targetType": "library",
"subPackages": [
{
"name": "sprite",
"description": ".spr file format for images
because I'm to lazy to use a preexisting one for sprites.",
"targetType": "library",
"importPaths": ["./source"],
"sourceFiles": ["sprite.d"],
"dependencies": {
"dutils:skeleton": "~stable"
}
},
{
"name": "binom",
"description": "Module for doing some bionomial
work in the D Programming Language(why did I make this).",
"targetType": "library",
"importPaths": ["./source"],
"sourceFiles": ["binom.d"]
},
{
"name": "skeleton",
"description": "Module for implementing
skeletons, e.g. a cube with criss-crossing beams to better detect
collision.",
"targetType": "library",
"importPaths": ["./source"],
"sourceFiles": ["skeleton.d"]
},
{
"name": "physics",
"description": "A very simple and basic physics
library.",
"targetType": "library",
"importPaths": ["./source"],
"sourceFiles": ["physics.d"],
"dependencies": {
"dutils:skeleton": "~stable"
}
}
]
}
More information about the Digitalmars-d-learn
mailing list