We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36bc517 commit a5cf60fCopy full SHA for a5cf60f
1 file changed
stacks/gosu/build.sh
@@ -8,8 +8,17 @@ function build() {
8
generate-stack-path
9
BIN_DIR="${DATA_DIR}"/bin
10
mkdir -p "${BIN_DIR}"
11
- curl -fsSL -o "${BIN_DIR}"/"${STACK_NAME}" https://github.com/tianon/gosu/releases/download/"${STACK_VERSION}"/"${STACK_NAME}"-"${OS_ARCH}"
12
- chmod +x "${BIN_DIR}"/"${STACK_NAME}"
+ install-stack go "${GO_VERSION}"
+ . init-stack
13
+ curl -fsSL -o tmp.tar.gz https://github.com/tianon/gosu/archive/refs/tags/${STACK_VERSION}.tar.gz
14
+ tar -xvzf tmp.tar.gz
15
+ cd gosu-${STACK_VERSION}
16
+ # fix CVE-2022-28948
17
+ go get -u ./...; go mod tidy; go mod vendor
18
+
19
+ go build -o "${BIN_DIR}"/"${STACK_NAME}"
20
+ cd ..
21
+ rm -rf gosu-${STACK_VERSION} tmp.tar.gz
22
}
23
24
# call build stack
0 commit comments