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
37dda6c2
Commit
37dda6c2
authored
Mar 28, 2017
by
Jeff Grafton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
If we already have the right version of gazel installed, use it
parent
b4c71b1f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
10 deletions
+19
-10
update-bazel.sh
hack/update-bazel.sh
+6
-7
verify-bazel.sh
hack/verify-bazel.sh
+13
-3
No files found.
hack/update-bazel.sh
View file @
37dda6c2
...
@@ -20,18 +20,17 @@ set -o pipefail
...
@@ -20,18 +20,17 @@ set -o pipefail
export
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/..
export
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/..
source
"
${
KUBE_ROOT
}
/hack/lib/init.sh"
source
"
${
KUBE_ROOT
}
/hack/lib/init.sh"
git config http.https://gopkg.in.followRedirects
true
go get gopkg.in/mikedanese/gazel.v14/gazel
go get
-u
gopkg.in/mikedanese/gazel.v14/gazel
for
path
in
${
GOPATH
//
:/
}
;
do
for
path
in
${
GOPATH
//
:/
}
;
do
if
[[
-e
"
${
path
}
/bin/gazel"
]]
;
then
if
[[
-e
"
${
path
}
/bin/gazel"
]]
;
then
gazel
=
"
${
path
}
/bin/gazel"
gazel
=
"
${
path
}
/bin/gazel"
break
break
fi
fi
done
done
if
[[
-z
"
${
gazel
:-}
"
]]
;
then
if
[[
-z
"
${
gazel
:-}
"
]]
;
then
echo
"Couldn't find gazel on the GOPATH."
echo
"Couldn't find gazel on the GOPATH."
exit
1
exit
1
fi
fi
"
${
gazel
}
"
-root
=
"
$(
kube::realpath
${
KUBE_ROOT
})
"
"
${
gazel
}
"
-root
=
"
$(
kube::realpath
${
KUBE_ROOT
})
"
hack/verify-bazel.sh
View file @
37dda6c2
...
@@ -20,10 +20,20 @@ set -o pipefail
...
@@ -20,10 +20,20 @@ set -o pipefail
export
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/..
export
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/..
source
"
${
KUBE_ROOT
}
/hack/lib/init.sh"
source
"
${
KUBE_ROOT
}
/hack/lib/init.sh"
g
it config http.https://gopkg.in.followRedirects
true
g
o get gopkg.in/mikedanese/gazel.v14/gazel
go get
-u
gopkg.in/mikedanese/gazel.v14/gazel
for
path
in
${
GOPATH
//
:/
}
;
do
if
!
"
${
GOPATH
}
/bin/gazel"
-validate
-print-diff
-root
=
"
$(
kube::realpath
${
KUBE_ROOT
})
"
;
then
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
if
!
"
${
gazel
}
"
-validate
-print-diff
-root
=
"
$(
kube::realpath
${
KUBE_ROOT
})
"
;
then
echo
echo
echo
"Run ./hack/update-bazel.sh"
echo
"Run ./hack/update-bazel.sh"
exit
1
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