Skip to content

Commit

Permalink
Merge pull request #4409 from jwcesign/fix-codegen
Browse files Browse the repository at this point in the history
fix: generate the code in correct path
  • Loading branch information
karmada-bot authored Dec 14, 2023
2 parents 57f13ce + 3bac319 commit 5c1ba0f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hack/util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -713,13 +713,13 @@ function util:create_gopath_tree() {
local repo_root=$1
local go_path=$2

local go_pkg_dir="${go_path}/src/${KARMADA_GO_PACKAGE}"
go_pkg_dir=$(dirname "${go_pkg_dir}")
local karmada_pkg_dir="${go_path}/src/${KARMADA_GO_PACKAGE}"
local go_pkg_dir=$(dirname "${karmada_pkg_dir}")

mkdir -p "${go_pkg_dir}"

if [[ ! -e "${go_pkg_dir}" || "$(readlink "${go_pkg_dir}")" != "${repo_root}" ]]; then
ln -snf "${repo_root}" "${go_pkg_dir}"
ln -snf "${repo_root}" "${karmada_pkg_dir}"
fi
}

Expand Down

0 comments on commit 5c1ba0f

Please sign in to comment.