mirror of https://github.com/goproxyio/goproxy
fix #63
parent
add79fbe31
commit
2c027c90d6
|
@ -6,7 +6,7 @@ GOVERSION=`go version | awk -F ' ' '{print $3}'|grep '1.12'`
|
|||
GTGO12=0
|
||||
echo "ENV GOLANG VER: $GOVERSION"
|
||||
|
||||
if [[ "$GOVERSION" != "" ]]
|
||||
if [ "$GOVERSION" != "" ]
|
||||
then
|
||||
GTGO12=1
|
||||
echo "use 1.12 mode"
|
||||
|
@ -25,7 +25,7 @@ cp -r "${GOROOT}/src/cmd/internal/test2json" "${PKG}"
|
|||
cp -r "${GOROOT}/src/internal/singleflight" "${PKG}"
|
||||
cp -r "${GOROOT}/src/internal/testenv" "${PKG}"
|
||||
|
||||
if [[ "$GTGO12" = "1" ]]
|
||||
if [ "$GTGO12" = "1" ]
|
||||
then
|
||||
cp -r "${GOROOT}/src/internal/xcoff" "${PKG}"
|
||||
cp -r "${GOROOT}/src/internal/goroot" "${PKG}"
|
||||
|
@ -37,7 +37,7 @@ find "${PKG}" -type f -name '*.go' -exec sed -i -e 's/cmd\/internal/github.com\/
|
|||
find "${PKG}" -type f -name '*.go' -exec sed -i -e 's/internal\/singleflight/github.com\/goproxyio\/goproxy\/internal\/singleflight/g' {} +
|
||||
find "${PKG}" -type f -name '*.go' -exec sed -i -e 's/internal\/testenv/github.com\/goproxyio\/goproxy\/internal\/testenv/g' {} +
|
||||
|
||||
if [[ "$GTGO12" = "1" ]]
|
||||
if [ "$GTGO12" = "1" ]
|
||||
then
|
||||
find "${PKG}" -type f -name '*.go' -exec sed -i -e 's/internal\/goroot/github.com\/goproxyio\/goproxy\/internal\/goroot/g' {} +
|
||||
find "${PKG}" -type f -name '*.go' -exec sed -i -e 's/internal\/xcoff/github.com\/goproxyio\/goproxy\/internal\/xcoff/g' {} +
|
||||
|
|
Loading…
Reference in New Issue