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
412de286
Commit
412de286
authored
Jun 29, 2018
by
Dr. Stefan Schimanski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hack/verify-pkg-names.sh: remove k8s.io/metrics dirs
parent
f6c3e5e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
verify-pkg-names.sh
hack/verify-pkg-names.sh
+1
-1
No files found.
hack/verify-pkg-names.sh
View file @
412de286
...
@@ -26,7 +26,7 @@ source "${KUBE_ROOT}/hack/lib/init.sh"
...
@@ -26,7 +26,7 @@ source "${KUBE_ROOT}/hack/lib/init.sh"
kube::golang::verify_go_version
kube::golang::verify_go_version
cd
"
${
KUBE_ROOT
}
"
cd
"
${
KUBE_ROOT
}
"
if
git
--no-pager
grep
-E
$'^(import |
\t
)[a-z]+[A-Z_][a-zA-Z]* "[^"]+"$'
--
'**/*.go'
':(exclude)vendor/*'
':(exclude)staging/src/k8s.io/metrics/*'
;
then
if
git
--no-pager
grep
-E
$'^(import |
\t
)[a-z]+[A-Z_][a-zA-Z]* "[^"]+"$'
--
'**/*.go'
':(exclude)vendor/*'
;
then
echo
"!!! Some package aliases break go conventions."
echo
"!!! Some package aliases break go conventions."
echo
"To fix these errors, do not use capitalized or underlined characters"
echo
"To fix these errors, do not use capitalized or underlined characters"
echo
"in pkg aliases. Refer to https://blog.golang.org/package-names for more info."
echo
"in pkg aliases. Refer to https://blog.golang.org/package-names for more info."
...
...
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