Use go.uber.org import path (#13)
This commit is contained in:
committed by
GitHub
parent
6c2817a9ef
commit
0ab99594f7
@@ -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
23
scripts/test-ubergo.sh
Executable 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
|
||||
Reference in New Issue
Block a user