mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-11 21:51:21 +00:00
Added GOPATH/bin to the path in build script
Also fixed hardcoded tool name for MongoDB tools
This commit is contained in:
@@ -138,7 +138,7 @@ func main() {
|
|||||||
log.SetLevel(logLevel)
|
log.SetLevel(logLevel)
|
||||||
|
|
||||||
if opts.Version {
|
if opts.Version {
|
||||||
fmt.Println("pt-mongodb-summary")
|
fmt.Println(TOOLNAME)
|
||||||
fmt.Printf("Version %s\n", Version)
|
fmt.Printf("Version %s\n", Version)
|
||||||
fmt.Printf("Build: %s using %s\n", Build, GoVersion)
|
fmt.Printf("Build: %s using %s\n", Build, GoVersion)
|
||||||
return
|
return
|
||||||
|
@@ -172,7 +172,7 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if opts.Version {
|
if opts.Version {
|
||||||
fmt.Println("pt-mongodb-summary")
|
fmt.Println(TOOLNAME)
|
||||||
fmt.Printf("Version %s\n", Version)
|
fmt.Printf("Version %s\n", Version)
|
||||||
fmt.Printf("Build: %s using %s\n", Build, GoVersion)
|
fmt.Printf("Build: %s using %s\n", Build, GoVersion)
|
||||||
return
|
return
|
||||||
|
@@ -426,7 +426,8 @@ build_go_binaries() {
|
|||||||
TOOLKIT_DIR="${PERCONA_DIR}/percona-toolkit"
|
TOOLKIT_DIR="${PERCONA_DIR}/percona-toolkit"
|
||||||
GO_TOOLS_DIR="${TOOLKIT_DIR}/src/go"
|
GO_TOOLS_DIR="${TOOLKIT_DIR}/src/go"
|
||||||
CUR_DIR=$(pwd)
|
CUR_DIR=$(pwd)
|
||||||
UNLINK=0
|
UNLINK=0
|
||||||
|
export PATH=${GOPATH}/bin:${PATH}
|
||||||
|
|
||||||
echo "GOPATH: ${GOPATH}"
|
echo "GOPATH: ${GOPATH}"
|
||||||
echo "Github directory: ${GITHUB_DIR}"
|
echo "Github directory: ${GITHUB_DIR}"
|
||||||
|
Reference in New Issue
Block a user