2024-05-24 10:01:58 +00:00
|
|
|
#!/usr/bin/env bash
|
2018-09-14 10:17:51 +00:00
|
|
|
|
|
|
|
# An example script to run when bisecting go with git bisect -run when
|
|
|
|
# looking for an rclone regression
|
|
|
|
|
|
|
|
# Run this from the go root
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
# Compile the go version
|
|
|
|
cd src
|
2018-09-18 19:12:27 +00:00
|
|
|
./make.bash || exit 125
|
2018-09-14 10:17:51 +00:00
|
|
|
|
|
|
|
# Make sure we are using it
|
|
|
|
source ~/bin/use-go1.11
|
|
|
|
go version
|
|
|
|
|
|
|
|
# Compile rclone
|
2019-07-28 17:47:38 +00:00
|
|
|
cd ~/go/src/github.com/rclone/rclone
|
2018-09-14 10:17:51 +00:00
|
|
|
make
|
|
|
|
|
|
|
|
# run the failing test
|
|
|
|
go run -race race.go
|