Don't use ~> for branches.

alpha@DESKTOP-RB97SA4 /tmp/dutils
$ dub build
Invalid SemVer format: stable.0.0

alpha@DESKTOP-RB97SA4 /tmp/dutils
$ nano dub.json

alpha@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@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" } } ] }

Reply via email to