snapcraft terminates override-build script prematurely without error

Bug #1987853 reported by Nicolas Bock
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Snapcraft
New
Undecided
Unassigned

Bug Description

After upgrading my snap from core18 to core20 [1] the override-build step is not completed anymore. However, there is no error message and snapcraft continues with staging and then proceeds to the next part [2]. The build script [3] executes the make command but terminates the script before the make install command.

[1] https://github.com/nicolasbock/rabbitmq-server-snap/pull/52
[2] https://github.com/nicolasbock/rabbitmq-server-snap/runs/7982842565?check_suite_focus=true#step:3:5863
[3] https://github.com/nicolasbock/rabbitmq-server-snap/pull/52/files#diff-56759910381a014fecfd7556dd72ddd68c747d922a5b7df2044b9ce7c552f5f5R164 1

Revision history for this message
Nicolas Bock (nicolasbock) wrote :

There is a forums discussion related to this issue at

https://forum.snapcraft.io/t/snapcraft-not-completing-override-build-script/31435

Revision history for this message
John Neffenger (jgneff) wrote :

I'm having the same problem when migrating from core18 to either core20 or core22, whether using snapcraft version 7.5.5 or the latest version 8.0.5. The override-build scriptlet just quits after the build step and never executes the commands that follow, which copy the build output to the install directory.

The 'bash gradlew' build command linked below is executed and finishes without error:

https://github.com/jgneff/openjfx/blob/076ad6de73def01cbc201385082e32c9e114bf3a/snap/snapcraft.yaml#L160

On core18, the rest of the override-build scriptlet is executed, but on core20 and core22, the commands below the build command are never executed:

https://github.com/jgneff/openjfx/blob/076ad6de73def01cbc201385082e32c9e114bf3a/snap/snapcraft.yaml#L167

I'm not sure how to get any more information from snapcraft about what it's doing. Meanwhile, I'll keep experimenting.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.