File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22#
3- # Copyright 2018, 2020 Delphix
3+ # Copyright 2018, 2022 Delphix
44#
55# Licensed under the Apache License, Version 2.0 (the "License");
66# you may not use this file except in compliance with the License.
1919DEFAULT_PACKAGE_GIT_URL=none
2020PACKAGE_DEPENDENCIES=" make-jpkg"
2121
22- _tarfile=" OpenJDK8U-jdk_x64_linux_hotspot_8u302b08 .tar.gz"
23- _tarfile_sha256=" cc13f274becf9dd5517b6be583632819dfd4dd81e524b5c1b4f406bdaf0e063a "
22+ _tarfile=" OpenJDK8U-jdk_x64_linux_hotspot_8u332b09 .tar.gz"
23+ _tarfile_sha256=" adc13a0a0540d77f0a3481b48f10d61eb203e5ad4914507d489c2de3bd3d83da "
2424_jdk_path=" /usr/lib/jvm/adoptopenjdk-java8-jdk-amd64"
2525
2626function prepare() {
Original file line number Diff line number Diff line change 1919DEFAULT_PACKAGE_GIT_URL=" https://github.com/delphix/zfs.git"
2020PACKAGE_DEPENDENCIES=" @linux-kernel delphix-rust"
2121
22- UPSTREAM_GIT_URL=" https://github.com/zfsonlinux /zfs.git"
22+ UPSTREAM_GIT_URL=" https://github.com/openzfs /zfs.git"
2323UPSTREAM_GIT_BRANCH=" master"
2424
2525function prepare() {
Original file line number Diff line number Diff line change @@ -76,8 +76,14 @@ set -o pipefail
7676echo " Running: git rev-parse refs/heads/repo-HEAD-saved"
7777saved_ref=$( git rev-parse refs/heads/repo-HEAD-saved) ||
7878 die " Failed to read local ref refs/heads/repo-HEAD-saved"
79+
80+ git_url=" $DEFAULT_PACKAGE_GIT_URL "
81+ if [[ -n " $FETCH_GIT_TOKEN " ]] && [[ " $git_url " == https://github.com/* ]]; then
82+ git_url=" ${git_url/ https: \/\/ / https: \/\/ ${FETCH_GIT_TOKEN} @ } "
83+ fi
84+
7985echo " Running: git ls-remote $DEFAULT_PACKAGE_GIT_URL refs/heads/$DEFAULT_GIT_BRANCH "
80- remote_ref=$( git ls-remote " $DEFAULT_PACKAGE_GIT_URL " " refs/heads/$DEFAULT_GIT_BRANCH " |
86+ remote_ref=$( git ls-remote " $git_url " " refs/heads/$DEFAULT_GIT_BRANCH " |
8187 awk ' {print $1}' ) ||
8288 die " Failed to read remote ref refs/heads/$DEFAULT_GIT_BRANCH "
8389set +o pipefail
You can’t perform that action at this time.
0 commit comments