mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 07:47:56 +00:00
Fix update-codecgen
This commit is contained in:
parent
58062bc347
commit
20cf0609dd
@ -54,7 +54,7 @@ function depends {
|
||||
file=${generated_files[$1]//\.generated\.go/.go}
|
||||
deps=$(go list -f "{{.Deps}}" ${file} | tr "[" " " | tr "]" " ")
|
||||
inputfile=${generated_files[$2]//\.generated\.go/.go}
|
||||
fullpath=$(cd "$(dirname "${inputfile}")" && pwd -P)
|
||||
fullpath=$(readlink -f ${generated_files[$2]//\.generated\.go/.go})
|
||||
candidate=$(dirname "${fullpath}")
|
||||
result=false
|
||||
for dep in ${deps}; do
|
||||
|
Loading…
Reference in New Issue
Block a user