Swap from FFJSON to easyjson

FFJSON has serialization differences versus stock Go - namely, it
does not respect the MarshalText() and UnmarshalText() methods,
particularly on []byte, which causes incompatability with
pre-FFJSON containers which contained DNS servers.

EasyJSON does not have these issues, and might even be slightly
faster.

Signed-off-by: Matthew Heon <matthew.heon@gmail.com>

Closes: #1322
Approved by: mheon
This commit is contained in:
Matthew Heon
2018-08-22 09:12:40 -04:00
committed by Atomic Bot
parent bd080b4530
commit 714dbbda9e
10 changed files with 8198 additions and 8155 deletions

View File

@ -61,11 +61,11 @@ RUN set -x \
&& export GOPATH=/go \
&& go get github.com/onsi/gomega/...
# Install ffjson
# Install easyjson
RUN set -x \
&& export GOPATH=/go \
&& go get github.com/pquerna/ffjson \
&& install -D -m 755 "$GOPATH"/bin/ffjson /usr/bin/
&& go get -u github.com/mailru/easyjson/... \
&& install -D -m 755 "$GOPATH"/bin/easyjson /usr/bin/
# Install conmon
ENV CRIO_COMMIT 662dbb31b5d4f5ed54511a47cde7190c61c28677