Skip to content

Commit

Permalink
modify kosmos go package
Browse files Browse the repository at this point in the history
Signed-off-by: wuyingjun <[email protected]>
  • Loading branch information
wuyingjun-lucky committed Oct 20, 2023
1 parent aedba1f commit 7d170ae
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion hack/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function build_binary_for_platform() {
local -r os=${platform%/*}
local -r arch=${platform##*/}

local target_pkg="${CLUSTERLINK_GO_PACKAGE}/$(util::get_target_source "$target")"
local target_pkg="${KOSMOS_GO_PACKAGE}/$(util::get_target_source "$target")"
set -x
CGO_ENABLED=0 GOOS=${os} GOARCH=${arch} go build \
-ldflags "${LDFLAGS:-}" \
Expand Down
2 changes: 1 addition & 1 deletion hack/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function release_binary_for_platform() {
local -r arch=$3
local -r platform="${os}-${arch}"

local target_pkg="${CLUSTERLINK_GO_PACKAGE}/$(util::get_target_source "$target")"
local target_pkg="${KOSMOS_GO_PACKAGE}/$(util::get_target_source "$target")"
set -x
CGO_ENABLED=0 GOOS=${os} GOARCH=${arch} go build \
-ldflags "${LDFLAGS:-}" \
Expand Down
4 changes: 2 additions & 2 deletions hack/util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set -o pipefail

# This script holds common bash variables and utility functions.

CLUSTERLINK_GO_PACKAGE="github.com/kosmos.io/kosmos"
KOSMOS_GO_PACKAGE="github.com/kosmos.io/kosmos"



Expand Down Expand Up @@ -466,7 +466,7 @@ function util:create_gopath_tree() {
local repo_root=$1
local go_path=$2

local go_pkg_dir="${go_path}/src/${CLUSTERLINK_GO_PACKAGE}"
local go_pkg_dir="${go_path}/src/${KOSMOS_GO_PACKAGE}"
go_pkg_dir=$(dirname "${go_pkg_dir}")

mkdir -p "${go_pkg_dir}"
Expand Down

0 comments on commit 7d170ae

Please sign in to comment.