From 2101ff290232dfd613c458eaad15db5c2e8608b2 Mon Sep 17 00:00:00 2001 From: Caleb Spare Date: Fri, 22 Apr 2016 13:53:54 -0700 Subject: [PATCH] Reference the gen package from easyjson The generated bootstrapping code requires gen; exposing this otherwise-indirect dependency makes life easier for people wishing to vendor easyjson so that they will pull in all the necessary dependencies. --- easyjson/main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/easyjson/main.go b/easyjson/main.go index 30e8835..87c1c6c 100644 --- a/easyjson/main.go +++ b/easyjson/main.go @@ -7,6 +7,10 @@ import ( "strings" "github.com/mailru/easyjson/bootstrap" + // Reference the gen package to be friendly to vendoring tools, + // as it is an indirect dependency. + // (The temporary bootstrapping code uses it.) + _ "github.com/mailru/easyjson/gen" "github.com/mailru/easyjson/parser" )