Closed can-lehmann closed 8 months ago
More specifically:
It is likely that the current nimibook version relies on nim 2.0 to build, but the github build pipeline couldn't detect that the ./nbook build
command was erroring out because nimble genBook
didn't error out with a non-zero exitCode.
That is because of the try-catch I think.
So it still would've failed to build, but not silently so and it would've been immediately obvious. The try-except just added to hiding the issue.
What exactly is supposed to happen as part of this PR? A quick commit to change
try:
exec "./nbook build --mm:refc --define:owlkettleNimiDocs --path:."
echo "BUILT NIMIBOOK"
except CatchableError:
discard
to
exec "./nbook build --mm:refc --define:owlkettleNimiDocs --path:."
echo "BUILT NIMIBOOK"
?
Yes, though it also requires doing some testing to make sure that that actually fixes the issue.
Discussed in https://github.com/can-lehmann/owlkettle/discussions/74
According to investigations by @PhilippMDoerner, the try/except statement on line 42 of the nimble file may be at fault, for not showing that the docs failed to build.