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
4bb2118f
Commit
4bb2118f
authored
Apr 29, 2018
by
Tim Hockin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify find in cache_go_dirs.sh
parent
46aecdaa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
cache_go_dirs.sh
hack/make-rules/helpers/cache_go_dirs.sh
+7
-6
No files found.
hack/make-rules/helpers/cache_go_dirs.sh
View file @
4bb2118f
...
@@ -36,22 +36,23 @@ trap "rm -f '${CACHE}'" HUP INT TERM ERR
...
@@ -36,22 +36,23 @@ trap "rm -f '${CACHE}'" HUP INT TERM ERR
# Example:
# Example:
# kfind -type f -name foobar.go
# kfind -type f -name foobar.go
function
kfind
()
{
function
kfind
()
{
# include the "special" vendor directories which are actually part
# We want to include the "special" vendor directories which are actually
# of the Kubernetes source tree - generators will use these for
# part of the Kubernetes source tree (./staging/*) but we need them to be
# including certain core API concepts.
# named as their ./vendor/* equivalents. Also, we do not want all of
find
-H
.
./vendor/k8s.io/apimachinery ./vendor/k8s.io/apiserver ./vendor/k8s.io/kube-aggregator ./vendor/k8s.io/apiextensions-apiserver ./vendor/k8s.io/metrics ./vendor/k8s.io/sample-apiserver ./vendor/k8s.io/api ./vendor/k8s.io/client-go ./vendor/k8s.io/code-generator ./vendor/k8s.io/sample-controller
\
# ./vendor or even all of ./vendor/k8s.io.
find
-H
.
\
\(
\
\(
\
-not
\(
\
-not
\(
\
\(
\
\(
\
-path
./vendor
-o
\
-path
./vendor
-o
\
-path
./staging
-o
\
-path
./_
\*
-o
\
-path
./_
\*
-o
\
-path
./.
\*
-o
\
-path
./.
\*
-o
\
-path
./docs
\
-path
./docs
\
\)
-prune
\
\)
-prune
\
\)
\
\)
\
\)
\
\)
\
"
$@
"
"
$@
"
\
|
sed
's|^./staging/src|vendor|'
}
}
NEED_FIND
=
true
NEED_FIND
=
true
...
...
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