2024-05-24 12:01:58 +02:00
|
|
|
#!/usr/bin/env bash
|
2018-09-14 12:17:51 +02: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 21:12:27 +02:00
|
|
|
./make.bash || exit 125
|
2018-09-14 12:17:51 +02:00
|
|
|
|
|
|
|
# Make sure we are using it
|
|
|
|
source ~/bin/use-go1.11
|
|
|
|
go version
|
|
|
|
|
|
|
|
# Compile rclone
|
2019-07-28 19:47:38 +02:00
|
|
|
cd ~/go/src/github.com/rclone/rclone
|
2018-09-14 12:17:51 +02:00
|
|
|
make
|
|
|
|
|
|
|
|
# run the failing test
|
|
|
|
go run -race race.go
|