[
https://issues.apache.org/jira/browse/HTRACE-183?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
stack updated HTRACE-183:
-------------------------
Attachment: 183.txt
Small patch. Has an irritant. See below.
1. It is not 100% clean. It drops a small pkg dir beside the gobuild.sh script
that has the following in it only (the bulk of pkg shows up in target dir):
{code}
$ find pkg/
pkg/
pkg//darwin_amd64
pkg//darwin_amd64/org
pkg//darwin_amd64/org/apache
pkg//darwin_amd64/org/apache/htrace
pkg//darwin_amd64/org/apache/htrace/client.a
pkg//darwin_amd64/org/apache/htrace/common.a
pkg//darwin_amd64/org/apache/htrace/conf.a
pkg//darwin_amd64/org/apache/htrace/test.a
{code}
2. It breaks being able to do in-situ development until I finish HTRACE-180.
Here is more on 1. I tried adding installsuffix to go install but it fails like
this:
{code}
kalashnikov:go stack$ ./gobuild.sh
godep restore...
WORK=/var/folders/cj/jgfy62h13vz019xgz681df_r0000gp/T/go-build198432365
sync
mkdir -p $WORK/sync/_obj/
mkdir -p $WORK/
cd /usr/local/Cellar/go/1.4/libexec/src/sync
/usr/local/Cellar/go/1.4/libexec/pkg/tool/darwin_amd64/6g -o $WORK/sync.a
-trimpath $WORK -p sync -installsuffix ../../target -D
_/usr/local/Cellar/go/1.4/libexec/src/sync -I $WORK -pack ./cond.go ./mutex.go
./once.go ./pool.go ./race0.go ./runtime.go ./rwmutex.go ./waitgroup.go
strconv
mkdir -p $WORK/strconv/_obj/
cd /usr/local/Cellar/go/1.4/libexec/src/strconv
/usr/local/Cellar/go/1.4/libexec/pkg/tool/darwin_amd64/6g -o $WORK/strconv.a
-trimpath $WORK -p strconv -complete -installsuffix ../../target -D
_/usr/local/Cellar/go/1.4/libexec/src/strconv -I $WORK -pack ./atob.go
./atof.go ./atoi.go ./decimal.go ./extfloat.go ./ftoa.go ./isprint.go ./itoa.go
./quote.go
# sync
/usr/local/Cellar/go/1.4/libexec/src/sync/cond.go:8: can't find import:
"sync/atomic"
# strconv
/usr/local/Cellar/go/1.4/libexec/src/strconv/atof.go:15: can't find import:
"math"
{code}
> Have go build into the target dir rather than under src
> -------------------------------------------------------
>
> Key: HTRACE-183
> URL: https://issues.apache.org/jira/browse/HTRACE-183
> Project: HTrace
> Issue Type: Task
> Reporter: stack
> Attachments: 183.txt
>
>
> Go creates a build subdir in the src subtree and then creates its binaries
> therein. Instead have it make a mess over in the target dir.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)