blue-build / modules

BlueBuild standard modules used for building your Atomic Images
Apache License 2.0
22 stars 26 forks source link

gnome-extensions module is broken #197

Closed alexispurslane closed 2 months ago

alexispurslane commented 2 months ago

When trying to build an image that uses the gnome-extensions module, I get this output:

> [stage-4  8/12] RUN   --mount=type=tmpfs,target=/var   --mount=type=bind,from=stage-config,src=/config,dst=/tmp/config,rw   --mount=type=bind,from=stage-modules,src=/modules,dst=/tmp/modules,rw   --mount=type=bind,from=ghcr.io/blue-build/cli:exports,src=/exports.sh,dst=/tmp/exports.sh   --mount=type=cache,dst=/var/cache/rpm-ostree,id=rpm-ostree-cache-secureblue-alexis-latest,sharing=locked   echo "========== Start Gnome-extensions module =========="   && chmod +x /tmp/modules/gnome-extensions/gnome-extensions.sh   && source /tmp/exports.sh   && /tmp/modules/gnome-extensions/gnome-extensions.sh '{"type":"gnome-extensions","install":["batterytimetypeof.pw.v5","custom-accent-colorsdemiskp.v9","forgejmmaranan.com.v78","PrivacyMenustuarthayhurst.v24","search-lighticedman.github.com.v22","transparent-top-barftpix.com.v19","user-themegnome-shell-extensions.gcampax.github.com.v54","VitalsCoreCoding.com.v67","vertical-workspacesG-dH.github.com.v52"]}'   && echo "========== End Gnome-extensions module =========="   
0.638 HTTP request sent, awaiting response... 200 OK
0.722 Length: 2303 (2.2K) [application/zip]
0.723 Saving to: '/tmp/batterytimetypeof.pw.v5/batterytimetypeof.pw.v5.shell-extension.zip/batterytimetypeof.pw.v5.shell-extension.zip'
0.723 
0.723      0K ..                                                    100% 11.9M=0s
0.723 
0.723 2024-04-11 17:32:59 (11.9 MB/s) - '/tmp/batterytimetypeof.pw.v5/batterytimetypeof.pw.v5.shell-extension.zip/batterytimetypeof.pw.v5.shell-extension.zip' saved [2303/2303]
0.723 
0.726 Extracting ZIP archive
0.728 unzip:  cannot find or open /tmp/batterytimetypeof.pw.v5/batterytimetypeof.pw.v5.shell-extension.zip, /tmp/batterytimetypeof.pw.v5/batterytimetypeof.pw.v5.shell-extension.zip.zip or /tmp/batterytimetypeof.pw.v5/batterytimetypeof.pw.v5.shell-extension.zip.ZIP.

It looks like the gnome-extensions script is saving the zipfiles to a subdirectory named after the zip file on accident, and then isn't able to find the zips in that unexpected location thereafter.

fiftydinar commented 2 months ago

Hello, I just fixed this very quickly, my fault.

Re-run the build again & it will work.

alexispurslane commented 2 months ago

Hell yeah! Thx