Skip to content

Commit 2b14cfb

Browse files
authored
fix: tar grpcurl permissions
nicolaka#158 grpcurl tar includes some wild UID/GID numbers that can't map to subuid/subgid. ``` 2024-04-04 09:48:12 (10.9 MB/s) - '/tmp/grpcurl.tar.gz' saved [7706522/7706522] tar: LICENSE: Cannot change ownership to uid 708061865, gid 708061865: Invalid argument tar: grpcurl: Cannot change ownership to uid 708061865, gid 708061865: Invalid argument tar: Exiting with failure status due to previous errors chown: cannot access '/tmp/grpcurl': No such file or directory Error: building at STEP "RUN /tmp/fetch_binaries.sh": while running runtime: exit status 1 ```
1 parent 4dfb45a commit 2b14cfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/fetch_binaries.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ get_grpcurl() {
5757
VERSION=$(get_latest_release fullstorydev/grpcurl | sed -e 's/^v//')
5858
LINK="https://github.com/fullstorydev/grpcurl/releases/download/v${VERSION}/grpcurl_${VERSION}_linux_${TERM_ARCH}.tar.gz"
5959
wget "$LINK" -O /tmp/grpcurl.tar.gz && \
60-
tar -zxvf /tmp/grpcurl.tar.gz && \
60+
tar --no-same-owner -zxvf /tmp/grpcurl.tar.gz && \
6161
mv "grpcurl" /tmp/grpcurl && \
6262
chmod +x /tmp/grpcurl
6363
chown root:root /tmp/grpcurl

0 commit comments

Comments
 (0)