Bug 1511821

Summary: cargo doesn't like redefinition of options in cmdline
Product: [Fedora] Fedora Reporter: Igor Gnatenko <ignatenko>
Component: rustAssignee: Rust SIG <rust-sig>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: igor.raits, jistone, rust-sig, TicoTimo
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-08-29 20:21:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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