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

no '--version' option for build command #1557

Closed
0xEAB opened this issue Sep 7, 2018 · 3 comments
Closed

no '--version' option for build command #1557

0xEAB opened this issue Sep 7, 2018 · 3 comments

Comments

@0xEAB
Copy link
Contributor

0xEAB commented Sep 7, 2018

System information

  • dub version: 1.11.0+13-gb837cee
  • OS Platform and distribution: GNU/Linux 4.18, Ubuntu 18.04
  • compiler version *

Bug Description

One can fetch specific version by dub fetch <package-name> --version=<package-version>, but one cannot build this version then since there's not dub build --version=<package-version>.

How to reproduce?

dub fetch dcd --version=0.8.0
dub build dcd --version=0.8.0
Unknown command line flags: --version=0.8.0

Expected Behavior

Support --version for the build command, too.

@WebFreak001
Copy link
Member

some would call this a feature request, but I think it's rather a bug that you can fetch a specific version and then building or running it potentially might not use the version you just downloaded.

@Geod24
Copy link
Member

Geod24 commented Jan 3, 2020

The way to specify version of a package is to use pkg@X.Y.Z.
I don't know why dub fetch supports --version=X.Y.Z but it also supports dub fetch dcd@0.9.0 so I'd be in favor of deprecating that switch rather than propagating it.

@Geod24
Copy link
Member

Geod24 commented Jul 27, 2022

--version is deprecated, pkg@spec is the way to go.

@Geod24 Geod24 closed this as completed Jul 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants