Skip to content

Commit

Permalink
Depend on a version of go-xdr with working discriminated unions
Browse files Browse the repository at this point in the history
Commit 7592fd7 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:

davecgh/go-xdr#6

Without support for these annotations, the code is unable to parse a
valid FSINFO reply.

Signed-off-by: Anders Kaseorg <[email protected]>
  • Loading branch information
andersk committed Jan 19, 2018
1 parent 5547f82 commit 0214ebd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nfs/xdr/decode.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion nfs/xdr/encode.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0214ebd

Please sign in to comment.