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

Library::version can return multiple lines #95

Closed
bmatcuk opened this issue Oct 27, 2019 · 0 comments
Closed

Library::version can return multiple lines #95

bmatcuk opened this issue Oct 27, 2019 · 0 comments

Comments

@bmatcuk
Copy link
Contributor

bmatcuk commented Oct 27, 2019

When using version number restrictions (such as atleast_version), the resulting pkg-config command will return the version number multiple times on different lines. For example, I have the following in my code:

    let libuv = pkg_config::Config::new()
        .range_version("1.30".."1.31")
        .probe("libuv");

Which results in something like the following getting run:

$ pkg-config --modversion libuv 'libuv >= 1.30' 'libuv < 1.31'
1.30.1
1.30.1
1.30.1

So libuv.version ends up being a string with the version repeated three times on different lines.

sdroege added a commit that referenced this issue Oct 28, 2019
Fixes #95 - multiple version numbers
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

1 participant