maintner/cmd/maintserve: remove replace directive, add go directive

I've decided it's better not have a local replace directive checked
in to source control, because it makes the x/build module version
used by maintserve less predictable and less clear.

The go.mod file specifies x/build v0.0.0-20190313234014-6d820572de7c,
yet the local replace directive means the actual x/build version
is a moving target if someone builds maintserve inside this module.
However, if they build maintserve from another module that requires
this module, the replace directive wouldn't be used.

Make things simple and clear by removing the local replace directive.
If another version of x/build needs to be used during development of
maintserve, the go.mod file can be modified locally appropriately.
It doesn't need to be checked in.

Change-Id: I544e23e4fa4dfad53a9aa83467a7714011701701
Reviewed-on: https://go-review.googlesource.com/c/build/+/196018
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Alexander Rakoczy <alex@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
diff --git a/maintner/cmd/maintserve/go.mod b/maintner/cmd/maintserve/go.mod
index 4608b95..5510066 100644
--- a/maintner/cmd/maintserve/go.mod
+++ b/maintner/cmd/maintserve/go.mod
@@ -1,5 +1,7 @@
 module golang.org/x/build/maintner/cmd/maintserve
 
+go 1.12
+
 require (
 	dmitri.shuralyov.com/app/changes v0.0.0-20181114035150-5af16e21babb
 	dmitri.shuralyov.com/html/belt v0.0.0-20180602232347-f7d459c86be0 // indirect
@@ -42,5 +44,3 @@
 	golang.org/x/tools v0.0.0-20190313193421-dbad8e90c91b // indirect
 	sourcegraph.com/sourcegraph/go-diff v0.5.0 // indirect
 )
-
-replace golang.org/x/build => ../../..
diff --git a/maintner/cmd/maintserve/go.sum b/maintner/cmd/maintserve/go.sum
index 64e27c6..00e9be1 100644
--- a/maintner/cmd/maintserve/go.sum
+++ b/maintner/cmd/maintserve/go.sum
@@ -128,6 +128,8 @@
 go.opencensus.io v0.18.0/go.mod h1:vKdFvxhtzZ9onBp9VKHK8z/sRpBMnKAsufL7wlDrCOA=
 go4.org v0.0.0-20180809161055-417644f6feb5 h1:+hE86LblG4AyDgwMCLTE6FOlM9+qjHSYS+rKqxUVdsM=
 go4.org v0.0.0-20180809161055-417644f6feb5/go.mod h1:MkTOUMDaeVYJUOUsaDXIhWPZYa1yOyC1qaOBpL57BhE=
+golang.org/x/build v0.0.0-20190313234014-6d820572de7c h1:8ZrMObGJIGFXD/FPajX4+Uss6Zq3bnF9N2lq7OVVlEk=
+golang.org/x/build v0.0.0-20190313234014-6d820572de7c/go.mod h1:QTwapSL5rDDgzcBhD3o6x8nwR+DfHtbW4JnWPnH6plA=
 golang.org/x/crypto v0.0.0-20181030102418-4d3f4d9ffa16/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
 golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
 golang.org/x/lint v0.0.0-20180702182130-06c8688daad7/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=