-
Notifications
You must be signed in to change notification settings - Fork 371
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
feat: improved error message when pom dependency version not found #253
Conversation
I'm not sure how useful this change is? shouldn't you be able to figure out the pom based on the dependency name and the property name that is being accessed? I'm not a heavy Java user, so would appreciate if you could expand on the situation you're dealing with where the current warning is not sufficient. (also @oliverchang or @another-rex could you approve the CI workflows to run?) |
I guess it depends on how the library is being used. I came to this from scorecard, and there for example you would currently see:
It's not super obvious those messages have anything to do with |
(on an aside, I am annoyed I forgot to add the Yeah I agree that output is not the best, though I think the problem is more with these outputs being done inefficiently because at the time I didn't want to commit to a specific way to surface them given it would impact the library function signatures and be just a whole "thing"... (I've explored a solution to this in #186 - any thoughts you'd have would be appreciated!) My concern with this change is that we're now expecting and promising more info out of the file, and that typically means more cases to handle (i.e. what happens if it's not there) - however I assume these two properties are always present in a |
:)
Yeah, something more 'controlled' like that would be great long-term, but coming up with what exactly that should look like is indeed not so easy :) .
I actually tested this with some poms that didn't have a GroupID and that indeed looked pretty OK.
Jup - it should probably still print it, but for example prefixing it with the "check" it belongs to and perhaps the file it's processing would be really useful to be able to do, and looks like it might be fairly easy to plug into that structure (Famous Last Words). |
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.
Thanks, looks good to me as a middle ground before #186 is landed.
Does this mean there is action required on my part? |
Ah no, was just trying out the merge queue, turns out still doesn't quite work for our repo. Going to merge this in soon. |
) Co-authored-by: Rex P <[email protected]>
…oogle#253) Co-authored-by: Rex P <[email protected]>
…oogle#253) Co-authored-by: Rex P <[email protected]>
No description provided.