Use go.uber.org import path (#13)

This commit is contained in:
Prashant Varanasi
2016-10-27 00:33:41 -07:00
committed by GitHub
parent 6c2817a9ef
commit 0ab99594f7
7 changed files with 48 additions and 16 deletions

View File

@@ -3,7 +3,7 @@
set -e
COVER=cover
ROOT_PKG=github.com/uber-go/atomic
ROOT_PKG=go.uber.org/atomic
if [[ -d "$COVER" ]]; then
rm -rf "$COVER"

23
scripts/test-ubergo.sh Executable file
View File

@@ -0,0 +1,23 @@
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
# This script creates a fake GOPATH, symlinks in the current
# directory as uber-go/atomic and verifies that tests still pass.
WORK_DIR=`mktemp -d`
function cleanup {
rm -rf "$WORK_DIR"
}
trap cleanup EXIT
export GOPATH="$WORK_DIR"
PKG_PARENT="$WORK_DIR/src/github.com/uber-go"
PKG_DIR="$PKG_PARENT/atomic"
mkdir -p "$PKG_PARENT"
ln -s `pwd` "$PKG_DIR"
cd "$PKG_DIR"
make test