butido icon indicating copy to clipboard operation
butido copied to clipboard

misleading error (real problem: unbound variable)

Open christophprokop opened this issue 2 years ago • 1 comments

Error: build command failed

[...]

       butido db log-of 038255b5-ac92-4f73-8880-44a7f0870abf | less -SR +G

1: Finalizing container
2: Copying the TAR stream to the staging store
3: Concatenating the output bytestream
4: Copying item from container 30a7db8788fc1946503cc736b3a627a1fe80682c04dc75f6b5b3c67ccd521c84 to host
5: Docker Error: 404 Not Found

----------------------------

this error is a bit misleading the logfile shows the real problem:

/script: line 730: CONFIGURE_FLAGS[@]: unbound variable

christophprokop avatar Nov 16 '22 21:11 christophprokop

This error can only be detected by executing the build script, not by butido itself.

A possible "fix" (although it isn't really a fix) would be to include build script output in the error trace.

matthiasbeyer avatar Nov 17 '22 07:11 matthiasbeyer