Skip to content

aws-lambda-cpp-0.2.6 unable to be installed, preinstall.sh failure #10

Closed
@MirandaDora

Description

@MirandaDora

I am trying to do RUN npm install aws-lambda-ric@1.0.0
It fails for the following reason:

./scripts/preinstall.sh
tar: aws-lambda-cpp-0.2.6/packaging: Cannot change ownership to uid XXXX, gid XXXX.

The error appears to be when unzip aws-lambda-cpp-0.2.6 in the preinstall script.
This is not reproducible locally, but on the automatic pipleline, you can see this.

The root cause is, most of the pipelines having the limitation:

UID/GIDs that are placed on files must be in the range 0-65535

However, the uid and gid I received is uid 1515433866, gid 1896053708.
May need to investigate what change has caused the ownership switch when installing aws-lambda-cpp

The quick workaround is to add --no-same-owner in the tar command.

Reference: golangci/golangci-lint#752

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions