Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ENOENT updating GPG custom resource #1704

Merged
merged 1 commit into from
Jul 22, 2024
Merged

Conversation

rix0rrr
Copy link
Contributor

@rix0rrr rix0rrr commented Jul 22, 2024

In #1703 the GPG binaries in the zip file were replaced, but the file structure inside the zip file was changes as well, leading to the following error after deploying:

Received response status [FAILED] from custom resource. Message returned: spawn /opt/gpg ENOENT (RequestId: 567a5e01-d1d7-4164-a542-1721669088c3)

This PR changes the ZIP structure to look the way it should have been (see #1703 (comment)):

$  unzip -l ./lib/custom-resource-handlers/layers/gpg-layer.zip
Archive:  ./lib/custom-resource-handlers/layers/gpg-layer.zip
  Length      Date    Time    Name
---------  ---------- -----   ----
     6148  07-18-2024 03:25   .DS_Store
   938568  07-18-2024 02:04   gpg
   300648  01-21-2020 18:44   gpg-agent
        0  07-18-2024 03:24   lib/
     6148  07-18-2024 03:24   lib/.DS_Store
   358304  07-18-2024 03:22   lib/libreadline.so.8.1
    87040  07-18-2024 03:20   lib/libassuan.so.0.8.5
    24152  07-18-2024 03:19   lib/libnpth.so.0.1.2
  1331864  07-18-2024 03:18   lib/libgcrypt.so.20.4.2
   153696  07-18-2024 03:19   lib/libgpg-error.so.0.32.0
    81024  07-18-2024 03:24   lib/libbz2.so.1.0.8
---------                     -------
  3287592                     11 files

The .DS_Store files shouldn't be there, but they don't harm either.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@rix0rrr rix0rrr requested a review from a team July 22, 2024 13:23
@mergify mergify bot merged commit 25f5177 into main Jul 22, 2024
8 checks passed
@mergify mergify bot deleted the huijbers/right-file-structure branch July 22, 2024 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants