github.com/artpar/rclone@v1.67.3/bin/bisect-go-rclone.sh (about)

     1  #!/bin/bash
     2  
     3  # An example script to run when bisecting go with git bisect -run when
     4  # looking for an rclone regression
     5  
     6  # Run this from the go root
     7  
     8  set -e
     9  
    10  # Compile the go version
    11  cd src
    12  ./make.bash || exit 125
    13  
    14  # Make sure we are using it
    15  source ~/bin/use-go1.11
    16  go version
    17  
    18  # Compile rclone
    19  cd ~/go/src/github.com/artpar/artpar
    20  make
    21  
    22  # run the failing test
    23  go run -race race.go