From a5995f58b1f682c15a3347bf3192c5f4a5f7ded0 Mon Sep 17 00:00:00 2001 From: Jakub Sobon Date: Sat, 6 Mar 2021 02:07:39 -0500 Subject: [PATCH] Allow CI to modify go.mod and go.sum for missing hashes. (#297) * Allow CI to modify go.mod and go.sum for missing hashes. * Updating CHANGELOG. --- .travis.yml | 7 +++++-- CHANGELOG.md | 3 ++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index d2bb2e3..8983916 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,8 +8,11 @@ before_install: script: - go get -t ./... - go get -u golang.org/x/lint/golint - - go test ./... - - CGO_ENABLED=1 go test -race ./... + # Temporarily set -mod=mod to allow modification of go.mod and go.sum. + # This seems to be caused by a sum missing in the tcell dependency and + # should be removed when no longer needed. + - go test -mod=mod ./... + - CGO_ENABLED=1 go test -mod=mod -race ./... - go vet ./... - diff -u <(echo -n) <(gofmt -d -s .) - diff -u <(echo -n) <(./internal/scripts/autogen_licences.sh .) diff --git a/CHANGELOG.md b/CHANGELOG.md index bb2b050..d87a6e9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,8 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed -- Bump github.com/gdamore/tcell/v2 from 2.0.0 to 2.1.0. +- Bump github.com/gdamore/tcell/v2 from 2.0.0 to 2.2.0. - Bump github.com/mattn/go-runewidth from 0.0.9 to 0.0.10. +- Allowing CI to modify go.mod and go.sum when necessary. ### Added