From 0214ebd88b21b598576732d23e33fa1547e2d68e Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Thu, 18 Jan 2018 21:33:13 -0500 Subject: [PATCH] Depend on a version of go-xdr with working discriminated unions Commit 7592fd7d851fefba0758fec6bfcf2f363f56d4da makes use of the `xdr:"union"` and `xdr:"unioncase=N"` annotations that were submitted in a pull request that has not been merged upstream to davecgh/go-xdr: https://github.com/davecgh/go-xdr/pull/6 Without support for these annotations, the code is unable to parse a valid FSINFO reply. Signed-off-by: Anders Kaseorg --- nfs/xdr/decode.go | 2 +- nfs/xdr/encode.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nfs/xdr/decode.go b/nfs/xdr/decode.go index b1cbcc1..9754798 100644 --- a/nfs/xdr/decode.go +++ b/nfs/xdr/decode.go @@ -6,7 +6,7 @@ package xdr import ( "io" - xdr "github.com/davecgh/go-xdr/xdr2" + xdr "github.com/rasky/go-xdr/xdr2" ) func Read(r io.Reader, val interface{}) error { diff --git a/nfs/xdr/encode.go b/nfs/xdr/encode.go index a640dca..59854f0 100644 --- a/nfs/xdr/encode.go +++ b/nfs/xdr/encode.go @@ -6,7 +6,7 @@ package xdr import ( "io" - xdr "github.com/davecgh/go-xdr/xdr2" + xdr "github.com/rasky/go-xdr/xdr2" ) func Write(w io.Writer, val interface{}) error {