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
795d09a8
Commit
795d09a8
authored
Aug 22, 2017
by
Jeff Grafton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Always create vendor/BUILD in hack/update-bazel.sh
parent
1f580ae8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
update-bazel.sh
hack/update-bazel.sh
+2
-0
verify-bazel.sh
hack/verify-bazel.sh
+7
-0
No files found.
hack/update-bazel.sh
View file @
795d09a8
...
...
@@ -28,5 +28,7 @@ rm -f "${KUBE_ROOT}/pkg/generated/openapi/zz_generated.openapi.go"
kube::util::go_install_from_commit github.com/kubernetes/repo-infra/kazel 4eaf9e671bbb549fb4ec292cf251f921d7ef80ac
kube::util::go_install_from_commit github.com/bazelbuild/rules_go/go/tools/gazelle/gazelle 82483596ec203eb9c1849937636f4cbed83733eb
touch
"
${
KUBE_ROOT
}
/vendor/BUILD"
gazelle fix
-build_file_name
=
BUILD,BUILD.bazel
-external
=
vendored
-mode
=
fix
-repo_root
=
"
$(
kube::realpath
${
KUBE_ROOT
})
"
kazel
-root
=
"
$(
kube::realpath
${
KUBE_ROOT
})
"
hack/verify-bazel.sh
View file @
795d09a8
...
...
@@ -20,6 +20,13 @@ set -o pipefail
export
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/..
source
"
${
KUBE_ROOT
}
/hack/lib/init.sh"
if
[[
!
-f
"
${
KUBE_ROOT
}
/vendor/BUILD"
]]
;
then
echo
"
${
KUBE_ROOT
}
/vendor/BUILD does not exist."
echo
echo
"Run ./hack/update-bazel.sh"
exit
1
fi
# Remove generated files prior to running kazel.
# TODO(spxtr): Remove this line once Bazel is the only way to build.
rm
-f
"
${
KUBE_ROOT
}
/pkg/generated/openapi/zz_generated.openapi.go"
...
...
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