Disable anonymous problem report request

Hi,

If a snap build fails, you receive a message like:

We would appreciate it if you anonymously reported this issue.
No other data than the traceback and the version of snapcraft in use will be sent.
Would you like to send this error data? (Yes/No/Always/View) [no]: 

Is it possible to disable it, or just somehow always configure no ?

We are doing snap builds in CI, and it’s not interactive, so hanging for input is not useful.

Thanks!

Cheers, Just

I found this on the Canonical bug tracker: https://bugs.launchpad.net/snapcraft/+bug/1790455 and it specifically calls out that message being not helpful in CI runs.

It would appear that setting SNAPCRAFT_ENABLE_ERROR_REPORTING=0 would disable the error report prompt.

2 Likes

That looks like that piece I was missing - thanks :+1:

Cheers, Just