Bug 1511821 - cargo doesn't like redefinition of options in cmdline
Summary: cargo doesn't like redefinition of options in cmdline
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: rust
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Rust SIG
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-11-10 08:47 UTC by Igor Gnatenko
Modified: 2022-08-29 20:21 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-08-29 20:21:24 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Igor Gnatenko 2017-11-10 08:47:17 UTC
+ /usr/bin/cargo test --release -j8 -j1
error: Invalid arguments.

Usage:
    cargo test [options] [--] [<args>...]

I can't easily remove -j8 because it is part of macro...

Comment 1 Igor Gnatenko 2017-11-10 08:50:05 UTC
actually workaround was quite simple..

export RPM_BUILD_NCPUS=1
%cargo_test

---

Keeping this bug opened because I would expect it to work anyway ;)

Comment 2 Fedora End Of Life 2018-02-20 15:27:03 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 28 development cycle.
Changing version to '28'.

Comment 3 Josh Stone 2018-08-03 05:26:45 UTC
cargo is part of the rust srpm now.

Comment 4 Upstream Release Monitoring 2019-05-24 00:01:22 UTC
Latest upstream release: 1.35.0 Current version/release in rawhide: 1.34.2-1.fc31 URL: https://www.rust-lang.org Please consult the package updates policy before you issue an update to a stable branch: https://fedoraproject.org/wiki/Updates_Policy More information about the service that created this bug can be found at: https://fedoraproject.org/wiki/Upstream_release_monitoringPlease keep in mind that with any upstream change, there may also be packaging changes that need to be made. Specifically, please remember that it is your responsibility to review the new version to ensure that the licensing is still correct and that no non-free or legally problematic items have been added upstream.Based on the information from anitya: https://release-monitoring.org/project/7635/

Comment 5 Josh Stone 2019-05-24 16:49:34 UTC
Rawhide now has rust-1.35.0-1.fc31, but this bug was improperly hijacked by anitya.

Comment 6 Josh Stone 2022-08-29 20:21:24 UTC
This is NOTABUG because that's an explicit design choice in the program. It should be argued upstream if you disagree.

$ cargo test --release -j8 -j1
error: The argument '--jobs <N>' was provided more than once, but cannot be used multiple times


Note You need to log in before you can comment on or make changes to this bug.