From d438a72c516d0e46688cb758e709cb6487b46419 Mon Sep 17 00:00:00 2001 From: Christopher Kaster Date: Mon, 30 Mar 2020 12:00:01 +0200 Subject: [PATCH] reset go.mod/go.sum before deployment --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index e98bd08..4bc8573 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,8 +19,9 @@ script: - go test -v -covermode=count -coverprofile=coverage.out ./... - "$(go env GOPATH)/bin/golangci-lint run" - "$(go env GOPATH)/bin/goveralls -coverprofile=coverage.out -service=travis-ci" - - git --no-pager diff after_success: + # reset go.mod/go.sum back to their initial state (after being modified by go get -u) + - git checkout -- go.mod go.sum # login to snapcraft - test -n "$TRAVIS_TAG" && snapcraft login --with snap.login deploy: