www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Error when using dub

reply Marc <mailnawman gmail.com> writes:
After some thinking i decided to create first a repository to 
play a little with mir ndslice library and then I plan to write a 
small article on its usage compared to numpy and pytorch. But I 
ran into a dub issue. I can't fetch the depencies or build the 
packages. The code is in https://github.com/istmarc/mir-examples. 
Can anyone please help with dub? I get the following error when 
running `dub fetch`
  `Error Invalid SemVer format: 1.39.0rc1.r78.0030b9af`.
Aug 11
parent reply drug007 <drug2004 bk.ru> writes:
On 11.08.2025 23:58, Marc wrote:
 After some thinking i decided to create first a repository to play a 
 little with mir ndslice library and then I plan to write a small article 
 on its usage compared to numpy and pytorch. But I ran into a dub issue. 
 I can't fetch the depencies or build the packages. The code is in 
 https://github.com/istmarc/mir-examples. Can anyone please help with 
 dub? I get the following error when running `dub fetch`
   `Error Invalid SemVer format: 1.39.0rc1.r78.0030b9af`.
It works for me. Try to do `git clean -fdx` - this cleans your repository up (deletes everything what has not been commited). Also you could try to remove dub.selection.json - probably it contains wrong version(s) that gives you the error
Aug 11
parent Marc <mailnawman gmail.com> writes:
On Monday, 11 August 2025 at 21:10:29 UTC, drug007 wrote:
 It works for me. Try to do `git clean -fdx` - this cleans your 
 repository up (deletes everything what has not been commited). 
 Also you could try to remove dub.selection.json - probably it 
 contains wrong version(s) that gives you the error
Thanks for your reply. Now it works for me too. I build dub from its git repository instead of the one on aur.
Aug 11