Skip to content

Commit 4883c0a

Browse files
committed
use buildin func
1 parent bee0a57 commit 4883c0a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.cloudbuild/library_generation/library_generation.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ ENV HOME=/home
6262
ENV OS_ARCHITECTURE="linux-x86_64"
6363

6464
# install OS tools
65-
RUN apk update && apk add unzip curl rsync openjdk11 jq bash nodejs npm git uuidgen
65+
RUN apk update && apk add unzip curl rsync openjdk11 jq bash nodejs npm git
6666

6767
SHELL [ "/bin/bash", "-c" ]
6868

hermetic_build/library_generation/generate_library.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ fi
114114
if [ -z "${os_architecture}" ]; then
115115
os_architecture=$(detect_os_architecture)
116116
fi
117-
118-
temp_destination_path="${output_folder}/temp_preprocessed/$(uuidgen)"
117+
random_suffix=$(LC_ALL=C tr -dc 'a-zA-Z0-9' < /dev/urandom | fold -w 10 | head -n 1)
118+
temp_destination_path="${output_folder}/temp_preprocessed/${random_suffix}"
119119
mkdir -p "${output_folder}/${destination_path}"
120120
if [ -d "${temp_destination_path}" ]; then
121121
# we don't want the preprocessed sources of a previous run

0 commit comments

Comments
 (0)