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
64b0c9ec
Commit
64b0c9ec
authored
Jul 14, 2017
by
Jeff Grafton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Switch from gazel to kazel, and move kazelcfg into build/root
parent
9ac09501
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
29 deletions
+8
-29
.kazelcfg.json
.kazelcfg.json
+2
-0
.kazelcfg.json
build/root/.kazelcfg.json
+0
-0
update-bazel.sh
hack/update-bazel.sh
+3
-14
verify-bazel.sh
hack/verify-bazel.sh
+3
-15
No files found.
.kazelcfg.json
0 → 120000
View file @
64b0c9ec
build/root/.kazelcfg.json
\ No newline at end of file
.g
azelcfg.json
→
build/root/.k
azelcfg.json
View file @
64b0c9ec
File moved
hack/update-bazel.sh
View file @
64b0c9ec
...
...
@@ -20,21 +20,10 @@ set -o pipefail
export
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/..
source
"
${
KUBE_ROOT
}
/hack/lib/init.sh"
# Remove generated files prior to running
g
azel.
# Remove generated files prior to running
k
azel.
# TODO(spxtr): Remove this line once Bazel is the only way to build.
rm
-f
"
${
KUBE_ROOT
}
/pkg/generated/openapi/zz_generated.openapi.go"
go get
-u
gopkg.in/mikedanese/gazel.v17/gazel
kube::util::go_install_from_commit github.com/kubernetes/repo-infra/kazel fd3ec969104295f8484a32114ce625955a67365d
for
path
in
${
GOPATH
//
:/
}
;
do
if
[[
-e
"
${
path
}
/bin/gazel"
]]
;
then
gazel
=
"
${
path
}
/bin/gazel"
break
fi
done
if
[[
-z
"
${
gazel
:-}
"
]]
;
then
echo
"Couldn't find gazel on the GOPATH."
exit
1
fi
"
${
gazel
}
"
-root
=
"
$(
kube::realpath
${
KUBE_ROOT
})
"
kazel
-root
=
"
$(
kube::realpath
${
KUBE_ROOT
})
"
hack/verify-bazel.sh
View file @
64b0c9ec
...
...
@@ -20,25 +20,13 @@ set -o pipefail
export
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/..
source
"
${
KUBE_ROOT
}
/hack/lib/init.sh"
go get gopkg.in/mikedanese/gazel.v17/gazel
# Remove generated files prior to running gazel.
# 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"
for
path
in
${
GOPATH
//
:/
}
;
do
if
[[
-e
"
${
path
}
/bin/gazel"
]]
;
then
gazel
=
"
${
path
}
/bin/gazel"
break
fi
done
if
[[
-z
"
${
gazel
:-}
"
]]
;
then
echo
"Couldn't find gazel on the GOPATH."
exit
1
fi
kube::util::go_install_from_commit github.com/kubernetes/repo-infra/kazel fd3ec969104295f8484a32114ce625955a67365d
if
!
"
${
gazel
}
"
-validate
-print-diff
-root
=
"
$(
kube::realpath
${
KUBE_ROOT
})
"
;
then
if
!
kazel
-validate
-print-diff
-root
=
"
$(
kube::realpath
${
KUBE_ROOT
})
"
;
then
echo
echo
"Run ./hack/update-bazel.sh"
exit
1
...
...
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