-
Notifications
You must be signed in to change notification settings - Fork 4
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
Error while analyzing Googlemock #49
Comments
@bennati Thanks for the report... I reckon you were working on a checkout of https://github.com/google/googletest/ ... correct? |
Yes, I downloaded that file locally and ran nuget instpector on it. |
My workaround for this kind of error is to edit the csproj/vcxproj file and add a Condition to check if the file exists.
@pombredanne: I think we need a more robust approach here, like providing a flag to ignore missing imports. Other examples are: |
@mawl re:
This could work, and how would spec this? You realize though that this would mean that we are missing files and that the dependency resolution ends up being a best effort, more than likely incorrect, because the project would not even compile and build for real in this configuration. |
@pombredanne: thanks for your answer. Let me explain: We're using ORT which uses the nuget-inspector. We experience some issues during analyze phase when these imports are missing and often these projects doesn't even have NuGet PackageReferences. Actually we're using ORTs mechanism of issue resolution to ignore them: https://oss-review-toolkit.org/ort/docs/configuration/ort-yml#resolving-issues Maybe you have an idea how to deal with it? |
Analyzing this file https://github.com/google/googletest/blob/0a439623f75c029912728d80cb7f1b8b48739ca4/googlemock/msvc/2010/gmock.vcxproj
with nuget-inspector 0.9.12
with command
nuget-inspector --with-details --verbose --project-file gmock.vcxproj --json o.json
fails with the below stack trace
The text was updated successfully, but these errors were encountered: