You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
771 B
29 lines
771 B
1 year ago
|
#!/usr/bin/env bash
|
||
|
|
||
|
# Copyright 2020 Lingfei Kong <colin404@foxmail.com>. All rights reserved.
|
||
|
# Use of this source code is governed by a MIT style
|
||
|
# license that can be found in the LICENSE file.
|
||
|
|
||
|
set -o errexit
|
||
|
set +o nounset
|
||
|
set -o pipefail
|
||
|
|
||
|
# Unset CDPATH so that path interpolation can work correctly
|
||
|
# https://github.com/iamrnetes/iamrnetes/issues/52255
|
||
|
unset CDPATH
|
||
|
|
||
|
# Default use go modules
|
||
|
export GO111MODULE=on
|
||
|
|
||
|
# The root of the build/dist directory
|
||
|
IAM_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd -P)"
|
||
|
|
||
|
source "${IAM_ROOT}/scripts/lib/util.sh"
|
||
|
source "${IAM_ROOT}/scripts/lib/logging.sh"
|
||
|
source "${IAM_ROOT}/scripts/lib/color.sh"
|
||
|
|
||
|
iam::log::install_errexit
|
||
|
|
||
|
source "${IAM_ROOT}/scripts/lib/version.sh"
|
||
|
source "${IAM_ROOT}/scripts/lib/golang.sh"
|