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
78b82382
Commit
78b82382
authored
Sep 04, 2014
by
Eric Paris
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
default to build all binaries even if build options given
parent
acb3e39d
Show 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 @
78b82382
...
@@ -34,29 +34,35 @@ kube::setup_go_environment
...
@@ -34,29 +34,35 @@ kube::setup_go_environment
# Fetch the version.
# Fetch the version.
version_ldflags
=
$(
kube::version_ldflags
)
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.
# Use eval to preserve embedded quoted strings.
eval
"goflags=(
${
GOFLAGS
:-}
)"
eval
"goflags=(
${
GOFLAGS
:-}
)"
binarie
s
=()
target
s
=()
for
arg
;
do
for
arg
;
do
if
[[
"
${
arg
}
"
==
-
*
]]
;
then
if
[[
"
${
arg
}
"
==
-
*
]]
;
then
# Assume arguments starting with a dash are flags to pass to go.
# Assume arguments starting with a dash are flags to pass to go.
goflags+
=(
"
${
arg
}
"
)
goflags+
=(
"
${
arg
}
"
)
else
else
binaries+
=(
"
${
KUBE_GO_PACKAGE
}
/
${
arg
}
"
)
targets+
=(
"
${
arg
}
"
)
fi
fi
done
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"
echo
"Building local go components"
# Note that the flags to 'go build' are duplicated in the salt build setup
# 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
# (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