move GODEBUG from code to readme

This commit is contained in:
Nicky Semenza
2021-10-13 15:37:09 -07:00
parent dcb780a3a5
commit dae41a447c
4 changed files with 2 additions and 17 deletions

View File

@@ -5,7 +5,6 @@ jobs:
test:
runs-on: ubuntu-latest
env:
GOFLAGS: "-mod=vendor"
GODEBUG: x509ignoreCN=0
steps:
- uses: actions/checkout@v2

View File

@@ -10,21 +10,9 @@ encryption and decryption server.
[![Go Test](https://github.com/cloudflare/redoctober/actions/workflows/go.yml/badge.svg)](https://github.com/cloudflare/redoctober/actions/workflows/go.yml)
[![Coverage Status](http://codecov.io/github/cloudflare/redoctober/coverage.svg?branch=master)](http://codecov.io/github/cloudflare/redoctober?branch=master)
This project requires [Go 1.16](http://golang.org/doc/install#download)
or later to compile. Verify your go version by running `go version`:
Note: `GODEBUG=x509ignoreCN=0` must be set during runtime (#204)
$ go version
go version go1.4
As with any Go program you do need to set the
[GOPATH environment variable](http://golang.org/doc/code.html#GOPATH)
accordingly. With Go set up you can download and compile sources:
$ go get github.com/cloudflare/redoctober
And run the tests:
$ go test github.com/cloudflare/redoctober...
This project requires [Go 1.16](http://golang.org/doc/install#download) or later to compile.
## Running

View File

@@ -109,7 +109,6 @@ func registerCli() {
//go:generate go run generate.go
func main() {
os.Setenv("GODEBUG", "x509ignoreCN=0") // need to keep using go1.16
registerCli()
var err error
if confFile != "" {

View File

@@ -84,7 +84,6 @@ func init() {
}
func setup(t *testing.T) (cmd *exec.Cmd) {
os.Setenv("GODEBUG", "x509ignoreCN=0")
const maxAttempts = 5
// Look for the redoctober binary in current directory and then in $GOPATH/bin