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
a11ea4e4
Unverified
Commit
a11ea4e4
authored
Feb 15, 2018
by
Christoph Blecker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enforce OWNERS file in Godeps and vendor dirs
parent
d3bcd367
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
godep-save.sh
hack/godep-save.sh
+10
-1
verify-godeps.sh
hack/verify-godeps.sh
+1
-1
No files found.
hack/godep-save.sh
View file @
a11ea4e4
...
@@ -20,7 +20,6 @@ set -o pipefail
...
@@ -20,7 +20,6 @@ set -o pipefail
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/..
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/..
source
"
${
KUBE_ROOT
}
/hack/lib/init.sh"
source
"
${
KUBE_ROOT
}
/hack/lib/init.sh"
source
"
${
KUBE_ROOT
}
/hack/lib/util.sh"
kube::log::status
"Ensuring prereqs"
kube::log::status
"Ensuring prereqs"
kube::util::ensure_single_dir_gopath
kube::util::ensure_single_dir_gopath
...
@@ -86,5 +85,15 @@ hack/update-bazel.sh >/dev/null
...
@@ -86,5 +85,15 @@ hack/update-bazel.sh >/dev/null
kube::log::status
"Updating LICENSES file"
kube::log::status
"Updating LICENSES file"
hack/update-godep-licenses.sh
>
/dev/null
hack/update-godep-licenses.sh
>
/dev/null
kube::log::status
"Creating OWNERS file"
rm
-f
"Godeps/OWNERS"
"vendor/OWNERS"
cat
<<
__EOF__
> "Godeps/OWNERS"
reviewers:
- dep-reviewers
approvers:
- dep-approvers
__EOF__
cp
"Godeps/OWNERS"
"vendor/OWNERS"
# Clean up
# Clean up
rm
-rf
"
${
BACKUP
}
"
rm
-rf
"
${
BACKUP
}
"
hack/verify-godeps.sh
View file @
a11ea4e4
...
@@ -101,7 +101,7 @@ pushd "${KUBE_ROOT}" 2>&1 > /dev/null
...
@@ -101,7 +101,7 @@ pushd "${KUBE_ROOT}" 2>&1 > /dev/null
ret
=
1
ret
=
1
fi
fi
if
!
_out
=
"
$(
diff
-Naupr
-x
"BUILD"
-x
"
OWNERS"
-x
"
AUTHORS*"
-x
"CONTRIBUTORS*"
vendor
${
_kubetmp
}
/vendor
)
"
;
then
if
!
_out
=
"
$(
diff
-Naupr
-x
"BUILD"
-x
"AUTHORS*"
-x
"CONTRIBUTORS*"
vendor
${
_kubetmp
}
/vendor
)
"
;
then
echo
"Your vendored results are different:"
>
&2
echo
"Your vendored results are different:"
>
&2
echo
"
${
_out
}
"
>
&2
echo
"
${
_out
}
"
>
&2
echo
"Godeps Verify failed."
>
&2
echo
"Godeps Verify failed."
>
&2
...
...
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