Skip to content

Add some error context to package analysis handlers - #750

Draft
jplatte wants to merge 1 commit into
mainfrom
jplatte/analysis-error-context
Draft

Add some error context to package analysis handlers#750
jplatte wants to merge 1 commit into
mainfrom
jplatte/analysis-error-context

Conversation

@jplatte

@jplatte jplatte commented Mar 27, 2026

Copy link
Copy Markdown
Member

I'm not convinced of the dynamicism being used here (boxed "handler" functions that are ultimately just a hardcoded list apparently?), but changing that would be a larger refactor so I opted for a very simple anyhow-like context wrapper for adding more error information.

@jplatte
jplatte requested review from ermo and tarkah as code owners March 27, 2026 22:58
@ermo

ermo commented Mar 28, 2026

Copy link
Copy Markdown
Member

This sadly still gives me the error of:

│A│ » /usr/lib/android-studio/plugins/android-ndk/resources/lldb/lib/python3.11/site-packages/pip-23.1.2.dist-info/LICENSE.txt
Error: build: container: exited with failure: run: package artifacts: analyzing paths: No such file or directory (os error 2)
error: Recipe `_build` failed on line 19 with exit code 1

I wonder if something could be done (potentially at the error handling site?) that handles the error in a way that would show the filename that caused the analysis process to fail?

@ermo
ermo marked this pull request as draft April 15, 2026 16:42
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.

2 participants