Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
c299f169
Unverified
Commit
c299f169
authored
Feb 04, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
Feb 04, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #73729 from dims/run-verify-remake-in-tmp-directory
Run verify generated files remake in a tmp directory
parents
5ab509b5
0f2c948d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
verify-generated-files-remake.sh
hack/verify-generated-files-remake.sh
+15
-0
No files found.
hack/verify-generated-files-remake.sh
View file @
c299f169
...
...
@@ -21,6 +21,21 @@ set -o pipefail
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/..
source
"
${
KUBE_ROOT
}
/hack/lib/init.sh"
kube::util::ensure_clean_working_dir
_tmpdir
=
"
$(
kube::realpath
$(
mktemp
-d
-t
verify-generated-files.XXXXXX
))
"
kube::util::trap_add
"rm -rf
${
_tmpdir
}
"
EXIT
_tmp_gopath
=
"
${
_tmpdir
}
/go"
_tmp_kuberoot
=
"
${
_tmp_gopath
}
/src/k8s.io/kubernetes"
mkdir
-p
"
${
_tmp_kuberoot
}
/.."
cp
-a
"
${
KUBE_ROOT
}
"
"
${
_tmp_kuberoot
}
/.."
cd
"
${
_tmp_kuberoot
}
"
# clean out anything from the temp dir that's not checked in
git clean
-ffxd
# $1 = filename pattern as in "zz_generated.$1.go"
function
find_genfiles
()
{
find
.
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment