[tor-commits] [pluggable-transports/snowflake] branch main updated: Add gofmt output to CI test before calling test -z

gitolite role git at cupani.torproject.org
Thu Nov 17 16:28:33 UTC 2022


This is an automated email from the git hooks/post-receive script.

cohosh pushed a commit to branch main
in repository pluggable-transports/snowflake.

The following commit(s) were added to refs/heads/main by this push:
     new 115ba6a  Add gofmt output to CI test before calling test -z
115ba6a is described below

commit 115ba6a745b877904f5f4b6a4c852c3f2d5a87b8
Author: Cecylia Bocovich <cohosh at torproject.org>
AuthorDate: Thu Nov 17 11:07:48 2022 -0500

    Add gofmt output to CI test before calling test -z
    
    We use a call to test -z together with go fmt because it doesn't output
    a non-zero exit status (triggering CI test failure). However, we lose
    useful debugging output from the go fmt call because test -z swallows
    it. This adds very verbose formatting output to the CI test.
---
 .gitlab-ci.yml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7db34d5..178c5a7 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -60,6 +60,7 @@ variables:
         lbzip2
 
 .go-test: &go-test
+  - gofmt -d .
   - test -z "$(go fmt ./...)"
   - go vet ./...
   - go test -v -race ./...

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the tor-commits mailing list