mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-10 12:22:36 +00:00
release: Drop build_hub helper
Not used anymore. Signed-off-by: Greg Kurz <groug@kaod.org>
This commit is contained in:
parent
bc4c66caaf
commit
6236fa4617
@ -15,7 +15,6 @@ export repo_root_dir="$(cd "${this_script_dir}/../../../" && pwd)"
|
|||||||
|
|
||||||
short_commit_length=10
|
short_commit_length=10
|
||||||
|
|
||||||
hub_bin="hub-bin"
|
|
||||||
gh_cli="gh-cli"
|
gh_cli="gh-cli"
|
||||||
|
|
||||||
#for cross build
|
#for cross build
|
||||||
@ -61,26 +60,6 @@ get_repo_hash() {
|
|||||||
popd >>/dev/null
|
popd >>/dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
build_hub() {
|
|
||||||
info "Get hub"
|
|
||||||
|
|
||||||
if cmd=$(command -v hub); then
|
|
||||||
hub_bin="${cmd}"
|
|
||||||
return
|
|
||||||
else
|
|
||||||
hub_bin="${tmp_dir:-/tmp}/hub-bin"
|
|
||||||
fi
|
|
||||||
|
|
||||||
local hub_repo="github.com/github/hub"
|
|
||||||
local hub_repo_dir="${GOPATH}/src/${hub_repo}"
|
|
||||||
[ -d "${hub_repo_dir}" ] || git clone --quiet --depth 1 "https://${hub_repo}.git" "${hub_repo_dir}"
|
|
||||||
pushd "${hub_repo_dir}" >>/dev/null
|
|
||||||
git checkout master
|
|
||||||
git pull
|
|
||||||
./script/build -o "${hub_bin}"
|
|
||||||
popd >>/dev/null
|
|
||||||
}
|
|
||||||
|
|
||||||
arch_to_golang()
|
arch_to_golang()
|
||||||
{
|
{
|
||||||
local -r arch="$1"
|
local -r arch="$1"
|
||||||
|
Loading…
Reference in New Issue
Block a user