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
d3b06363
Commit
d3b06363
authored
Sep 05, 2014
by
Filipe Brandenburger
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1172 from eparis/build-all
default to build all binaries even if build options given
parents
acb3e39d
78b82382
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
12 deletions
+18
-12
build-go.sh
hack/build-go.sh
+18
-12
No files found.
hack/build-go.sh
View file @
d3b06363
...
...
@@ -34,29 +34,35 @@ kube::setup_go_environment
# Fetch the version.
version_ldflags
=
$(
kube::version_ldflags
)
if
[[
$#
==
0
]]
;
then
# Update $@ with the default list of targets to build.
set
--
\
cmd/proxy
\
cmd/apiserver
\
cmd/controller-manager
\
cmd/kubelet cmd/kubecfg
\
plugin/cmd/scheduler
fi
# Use eval to preserve embedded quoted strings.
eval
"goflags=(
${
GOFLAGS
:-}
)"
binarie
s
=()
target
s
=()
for
arg
;
do
if
[[
"
${
arg
}
"
==
-
*
]]
;
then
# Assume arguments starting with a dash are flags to pass to go.
goflags+
=(
"
${
arg
}
"
)
else
binaries+
=(
"
${
KUBE_GO_PACKAGE
}
/
${
arg
}
"
)
targets+
=(
"
${
arg
}
"
)
fi
done
if
[[
${#
targets
[@]
}
-eq
0
]]
;
then
targets
=(
cmd/proxy
cmd/apiserver
cmd/controller-manager
cmd/kubelet
cmd/kubecfg
plugin/cmd/scheduler
)
fi
binaries
=()
for
target
in
${
targets
[@]
}
;
do
binaries+
=(
"
${
KUBE_GO_PACKAGE
}
/
${
target
}
"
)
done
echo
"Building local go components"
# Note that the flags to 'go build' are duplicated in the salt build setup
# (release/build-release.sh) for our cluster deploy. If we add more command
...
...
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