-
Notifications
You must be signed in to change notification settings - Fork 11
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
Update cargo-marker and other CLI to enable general use #60
Labels
A-marker-cargo
Area: All things connected to `cargo_marker`
C-tracking-issue
Category: Tracking issue
D-rustc-driver
Driver: Rustc Driver
Comments
bors bot
added a commit
that referenced
this issue
Nov 26, 2022
62: Minor cleanup in cargo-linter and stable CI r=xFrednet a=xFrednet A small cleanup PR, not much to say, just a few nice changes, before I try to rework more things in `cargo-linter` As always, happy about reviews, but I'll merge this, if there has been no progress by the next PR :) --- Closes #61 and progress on #60 Co-authored-by: xFrednet <[email protected]>
bors bot
added a commit
that referenced
this issue
Jan 5, 2023
66: `cargo-marker` refactoring and review r=xFrednet a=xFrednet I've refactored parts of cargo-marker and reviewed the implementation. I found several limitations which are now documented in #60. This PR already fixes a few of these. CC: #60 --- Same as always: If I don't get a review, I'll merge this, when a depending PR is ready. :) Co-authored-by: xFrednet <[email protected]>
bors bot
added a commit
that referenced
this issue
Jul 12, 2023
168: Cargo: Remove `cargo_fetch` dependency and rework the architecture r=xFrednet a=xFrednet This PR exploded a bit 😅. Removing the dependency required a few more changes than expected. The good news are, that marker now uses a stable way to fetch lint crates which also supports registries directly. No more `cargo` dependency, just command calls. I'm happy :D It also addresses or at least touches several other issues. Generally speaking, a nice update IMO. (The only big negative thing is the error handling. I've never learned how to do that properly, and cargo is getting more messy with less information after each refactoring 😅. I'll create an issue for that :)) --- Closes: #167 Closes: #155 Closes: #87 CC: #60 Co-authored-by: xFrednet <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-marker-cargo
Area: All things connected to `cargo_marker`
C-tracking-issue
Category: Tracking issue
D-rustc-driver
Driver: Rustc Driver
With most of the item backend implemented, it's finally time to run it on the first real crates and see what errors, todos and limitations come up. This is a collection of several paper cuts I ran into. Most of these are specific for the cargo interface.
cargo linter
passeslinter
as the second argument tocargo-linter
which isn't handled correctlycargo-linter
uses nightly features, which means thatcargo install ...
would require a nightly toolchain, this should be avoidable, at least for the cargo subcommand crate.cargo-linter
has a dev feature, which is turned on by default (It should be off by default)cargo-marker
marker_api
version that the driver usescargo build --config "dependencies.marker_api=\"0.0.0\""
marker_api
versioncargo-linter
starts the driver with the toolchain from the localrust-toolchain
which can cause errors. Until we have the preimage to be a component in rustup, we need to manually handle the toolchain for the drivermarker_rustc_driver
with the toolchain, that it belongs to #142to_string_lossy
The text was updated successfully, but these errors were encountered: