mirror of
https://github.com/gonum/gonum.git
synced 2025-10-16 20:20:41 +08:00
travis: ignore changes to go.mod during diff checks
This commit is contained in:
@@ -5,6 +5,7 @@ go generate gonum.org/v1/gonum/blas/gonum
|
||||
go generate gonum.org/v1/gonum/unit
|
||||
go generate gonum.org/v1/gonum/graph/formats/dot
|
||||
if [ -n "$(git diff)" ]; then
|
||||
git checkout -- go.mod # Discard changes to go.mod that have been made.
|
||||
git diff
|
||||
exit 1
|
||||
fi
|
||||
|
Reference in New Issue
Block a user