-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Closed
bebop/poly
#265Labels
Description
What version of Go are you using (go version)?
$ go version 1.18 and 1.19
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go envsed: illegal option -- r usage: sed script [-Ealn] [-i extension] [file ...] sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...] GO111MODULE="" GOARCH="amd64" GOBIN="" GOCACHE="/Users/timothystiles/Library/Caches/go-build" GOENV="/Users/timothystiles/Library/Application Support/go/env" GOEXE="" GOEXPERIMENT="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="darwin" GOINSECURE="" GOMODCACHE="/Users/timothystiles/go/pkg/mod" GONOPROXY="" GONOSUMDB="" GOOS="darwin" GOPATH="/Users/timothystiles/go" GOPRIVATE="" GOPROXY="https://proxy.golang.org,direct" GOROOT="/Users/timothystiles/sdk/go1.18beta1" GOSUMDB="sum.golang.org" GOTMPDIR="" GOTOOLDIR="/Users/timothystiles/sdk/go1.18beta1/pkg/tool/darwin_amd64" GOVCS="" GOVERSION="go1.18beta1" GCCGO="gccgo" GOAMD64="v1" AR="ar" CC="clang" CXX="clang++" CGO_ENABLED="1" GOMOD="/Users/timothystiles/git/poly/go.mod" GOWORK="" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/xl/y4w0nnw1621_9ngxx_l6bwn80000gn/T/go-build3864710302=/tmp/go-build -gno-record-gcc-switches -fno-common"
What did you do?
Switched to Go 1.19 and ran this test.
What did you expect to see?
The test passing the same way that it has in 1.18 and previous versions of Go.
What did you see instead?
The test fails with a two character difference from its expected output
I'm stuck on something pretty tricky and am hoping someone here knows something about this.
This example test passes when using Go 1.18 and fails when using Go 1.19.
The functions involved are stochastic and its output should never change but when run with Go 1.19 I get the errors that I've attached above.
Does anyone have any idea what's going on here? Maybe some unexpected behavior change in unmarshaling JSON between the two versions?
Thanks,
Tim

