Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Erased version specification for dependency, converted to "" instead of ">0.0.0" #2901

Open
p0nce opened this issue Apr 17, 2024 · 2 comments

Comments

@p0nce
Copy link
Contributor

p0nce commented Apr 17, 2024

System information

  • dub version: DUB version 1.35.1, built on Jan 6 2024
  • OS Platform and distribution: Windows 11
  • compiler version ldc2-1.36.0-windows-multilib

Bug Description

I'm using the numem package, who has an optional dependency on tinyd-rt
In its dub.sdl:

dependency "tinyd-rt" version=">0.0.0" optional=true

But on build: it says
image

Indeed the version specification is converted in the DUB own directory to this JSON:

image

The dependency has no more version specifier, it seems it got lost in the conversion.

How to reproduce?

Clone the yxml package and try to dub upgrade:
https://github.com/AuburnSounds/yxml

Expected Behavior

A pristine and preserved version specification.

@WebFreak001
Copy link
Member

does it work if you change it to "*"?

The error probably appears because >0.0.0 is not a valid format, you probably meant >=0.0.0 - however dub should show an issue for this.

See https://dub.pm/dub-reference/dependencies/ for valid version syntaxes and what they mean.

@p0nce
Copy link
Contributor Author

p0nce commented Apr 18, 2024

It's not my package, and I think DUB should reject invalid version specifications.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants