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
663b80b6
Commit
663b80b6
authored
Jul 12, 2014
by
Kouhei Ueno
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make hack/config-go.sh sourceable from zsh
parent
89655584
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
config-go.sh
hack/config-go.sh
+4
-5
No files found.
hack/config-go.sh
View file @
663b80b6
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
# This script sets up a go workspace locally and builds all go components.
# This script sets up a go workspace locally and builds all go components.
# You can 'source' this file if you want to set up GOPATH in your local shell.
# You can 'source' this file if you want to set up GOPATH in your local shell.
if
[
"
$(
which go
)
"
==
""
]
;
then
if
[
[
"
$(
which go
)
"
==
""
]
]
;
then
echo
"Can't find 'go' in PATH, please fix and retry."
echo
"Can't find 'go' in PATH, please fix and retry."
echo
"See http://golang.org/doc/install for installation instructions."
echo
"See http://golang.org/doc/install for installation instructions."
exit
1
exit
1
...
@@ -29,7 +29,7 @@ fi
...
@@ -29,7 +29,7 @@ fi
if
[
"
${
TRAVIS
}
"
!=
"true"
]
;
then
if
[
"
${
TRAVIS
}
"
!=
"true"
]
;
then
GO_VERSION
=(
$(
go version
)
)
GO_VERSION
=(
$(
go version
)
)
if
[
${
GO_VERSION
[2]
}
\<
"go1.2"
]
;
then
if
[
[
${
GO_VERSION
[2]
}
<
"go1.2"
]
]
;
then
echo
"Detected go version:
${
GO_VERSION
}
."
echo
"Detected go version:
${
GO_VERSION
}
."
echo
"Kubernetes requires go version 1.2 or greater."
echo
"Kubernetes requires go version 1.2 or greater."
echo
"Please install Go version 1.2 or later"
echo
"Please install Go version 1.2 or later"
...
@@ -37,10 +37,9 @@ if [ "${TRAVIS}" != "true" ]; then
...
@@ -37,10 +37,9 @@ if [ "${TRAVIS}" != "true" ]; then
fi
fi
fi
fi
pushd
$(
dirname
"
${
BASH_SOURCE
}
"
)
/..
>
/dev/null
KUBE_REPO_REL_ROOT
=
"
$(
dirname
${
BASH_SOURCE
:-
$0
})
/.."
KUBE_REPO_ROOT
=
"
$
{
PWD
}
"
KUBE_REPO_ROOT
=
"
$
(
readlink
-f
${
KUBE_REPO_REL_ROOT
})
"
KUBE_TARGET
=
"
${
KUBE_REPO_ROOT
}
/output/go"
KUBE_TARGET
=
"
${
KUBE_REPO_ROOT
}
/output/go"
popd
>
/dev/null
mkdir
-p
"
${
KUBE_TARGET
}
"
mkdir
-p
"
${
KUBE_TARGET
}
"
...
...
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