Skip to content

Added an auto-fixing handler#13

Open
herosi wants to merge 1 commit intomicrosoft:mainfrom
herosi:main
Open

Added an auto-fixing handler#13
herosi wants to merge 1 commit intomicrosoft:mainfrom
herosi:main

Conversation

@herosi
Copy link
Contributor

@herosi herosi commented Oct 31, 2025

When I analyzed a sample, RIFT reported an error.

2025-10-31 09:41:35,808 - INFO - Autofix failed for crate = hex, try fixing issue manually. Skipping the crate
2025-10-31 09:41:43,221 - INFO - Unknown error occurred!

The sample directly uses hex 0.4.3. And it also uses mmap 0.1.1, which also uses hex as its dependency, but uses a different version, 0.3.2.
Therefore, they are conflicted. When I compiled them manually with the command below, I got the message below.

> cargo build --release --package hex
error: There are multiple `hex` packages in your project, and the specification `hex` is ambiguous.
Please re-run this command with `-p <spec>` where `<spec>` is one of the following:
  hex@0.3.2
  hex@0.4.3

So, I implemented the error handler.
The handler adds the version number of the target crate if the error is emitted.

@herosi
Copy link
Contributor Author

herosi commented Oct 31, 2025

I also fixed typo of "occur" as well ;-)

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

Successfully merging this pull request may close these issues.

1 participant