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
b0af0f68
Commit
b0af0f68
authored
Jun 07, 2018
by
Jeff Grafton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gazelle: set proper importmap on dependencies in vendor/
parent
f31183fa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
update-bazel.sh
hack/update-bazel.sh
+6
-0
BUILD
vendor/BUILD
+2
-0
No files found.
hack/update-bazel.sh
View file @
b0af0f68
...
@@ -36,6 +36,12 @@ go install ./vendor/github.com/bazelbuild/bazel-gazelle/cmd/gazelle
...
@@ -36,6 +36,12 @@ go install ./vendor/github.com/bazelbuild/bazel-gazelle/cmd/gazelle
go
install
./vendor/github.com/kubernetes/repo-infra/kazel
go
install
./vendor/github.com/kubernetes/repo-infra/kazel
touch
"
${
KUBE_ROOT
}
/vendor/BUILD"
touch
"
${
KUBE_ROOT
}
/vendor/BUILD"
# Ensure that we use the correct importmap for all vendored dependencies.
# Probably not necessary in gazelle 0.13+
# (https://github.com/bazelbuild/bazel-gazelle/pull/207).
if
!
grep
-q
"# gazelle:importmap_prefix"
"
${
KUBE_ROOT
}
/vendor/BUILD"
;
then
echo
"# gazelle:importmap_prefix k8s.io/kubernetes/vendor"
>>
"
${
KUBE_ROOT
}
/vendor/BUILD"
fi
gazelle fix
\
gazelle fix
\
-build_file_name
=
BUILD,BUILD.bazel
\
-build_file_name
=
BUILD,BUILD.bazel
\
...
...
vendor/BUILD
View file @
b0af0f68
# gazelle:importmap_prefix k8s.io/kubernetes/vendor
filegroup(
filegroup(
name = "package-srcs",
name = "package-srcs",
srcs = glob(["**"]),
srcs = glob(["**"]),
...
...
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