-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Cargo improvements #7895
base: main
Are you sure you want to change the base?
Cargo improvements #7895
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
b6e0b0d
to
324bf6a
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
c47ef98
to
3c283ea
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
73813af
to
a56d543
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for not commenting on this earlier. I was hoping that we can get #7363 in first, since it's preparing TOML support in a nicer way (IMO) and has been there longer. Unfortunately that seems to be stuck right now.
Please note that you have to add a changelog fragment.
Also, extending the tests (see tests/integration/targets/cargo/) would be nice.
|
||
HAS_TOML = True | ||
except ImportError: | ||
pass |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The TOML code should preferably be in a module utils, similar as in #7895.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
plugins/modules/cargo.py
Outdated
version_added: 8.4.0 | ||
all_features: | ||
description: | ||
- Enable all features for package(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here.
|
||
HAS_TOML = True | ||
except ImportError: | ||
pass |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Co-authored-by: Felix Fontein <felix@fontein.de>
Use comma separated list of features without quotes
a57166c
to
d3856f3
Compare
0edaa4a
to
e61f3fd
Compare
* Fixes installed version for git/local. * Support latest determination with local source. * Adds docs. * Improves error message. * Setup for tests. * Updates copyright. * Align closer to #7895. * Adds changelog. * Check directory exists. * Stop using format strings. * Corrects directory arg type in docs. * Setup test repo dynamically. * Adds tests. * Adds version matching tests. * Update changelog fragment to match PR ID. * Updates copyright. * Import new directory tests.
* Fixes installed version for git/local. * Support latest determination with local source. * Adds docs. * Improves error message. * Setup for tests. * Updates copyright. * Align closer to #7895. * Adds changelog. * Check directory exists. * Stop using format strings. * Corrects directory arg type in docs. * Setup test repo dynamically. * Adds tests. * Adds version matching tests. * Update changelog fragment to match PR ID. * Updates copyright. * Import new directory tests. (cherry picked from commit 69b72e4)
…urce in a given directory (#8527) `cargo` module install from source in a given directory (#8480) * Fixes installed version for git/local. * Support latest determination with local source. * Adds docs. * Improves error message. * Setup for tests. * Updates copyright. * Align closer to #7895. * Adds changelog. * Check directory exists. * Stop using format strings. * Corrects directory arg type in docs. * Setup test repo dynamically. * Adds tests. * Adds version matching tests. * Update changelog fragment to match PR ID. * Updates copyright. * Import new directory tests. (cherry picked from commit 69b72e4) Co-authored-by: Colin Nolan <colin-nolan@users.noreply.github.com>
Hi @aretrosen , Are you still planning to work on this? |
No, I am not working at it currently. Should I close the PR? |
If you want to keep it, it's OK - but we will ping you every once in a while to check on it. If this has dropped entirely from your plans, then yes, please close it. Unless someone wants to resume working on it, in which case they should step forward and pick it up. |
SUMMARY
Closes #7338
This supports almost all flags by cargo install.
Caveats:
Currently, many packages can be installed at all, but in this PR, only one can be installed at a time. Further work can be done to install multiple packages at a time, if the design is confirmed.ISSUE TYPE
COMPONENT NAME
community.general.cargo
ADDITIONAL INFORMATION