Skip to content

Commit 8bfc7c5

Browse files
committed
ci: extract Maven without interpreting Windows drives as hosts
1 parent bf0c22a commit 8bfc7c5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎.github/workflows/ci.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1270,7 +1270,8 @@ jobs:
12701270
curl -fsSL --retry 3 "$url" -o "$RUNNER_TEMP/maven.tgz"
12711271
curl -fsSL --retry 3 "$url.sha512" -o "$RUNNER_TEMP/maven.sha512"
12721272
python -c 'import hashlib, pathlib, os; p=pathlib.Path(os.environ["RUNNER_TEMP"]); assert hashlib.sha512((p/"maven.tgz").read_bytes()).hexdigest() == (p/"maven.sha512").read_text().split()[0]'
1273-
tar -xzf "$RUNNER_TEMP/maven.tgz" -C "$RUNNER_TEMP"
1273+
# stdin avoids GNU tar treating a Windows drive prefix as a remote host.
1274+
tar -xzf - -C "$RUNNER_TEMP" < "$RUNNER_TEMP/maven.tgz"
12741275
launcher="$RUNNER_TEMP/apache-maven-${MAVEN_VERSION}/bin/mvn"
12751276
if [ "$RUNNER_OS" = Windows ]; then launcher="${launcher}.cmd"; fi
12761277
echo "SOCKET_PATCH_MAVEN_E2E_MVN=$launcher" >> "$GITHUB_ENV"

0 commit comments

Comments
 (0)