aboutsummaryrefslogtreecommitdiff
path: root/go.mod
diff options
context:
space:
mode:
authorDmitri Shuralyov <dmitshur@golang.org>2021-02-13 17:41:38 -0500
committerDmitri Shuralyov <dmitshur@golang.org>2021-03-04 02:13:20 +0000
commitb72029adf3393d3635828fedcddd5ae7053d3250 (patch)
treec3d5051608c9fd17cc97ca4d3a0dd51403440d2f /go.mod
parent004403599411fcd726b1e58cd0199083507d2047 (diff)
downloadgolang-id-tour-b72029adf3393d3635828fedcddd5ae7053d3250.tar.xz
tour: build snippets in module mode
We want to start building snippets in module mode rather than legacy legacy GOPATH mode, to make tour work well when there's no tour code in GOPATH/src and to be more future-proof. Building in module mode means we need to specify a go.mod file to use for each snippet. The tour web UI design predates the module mode and its go.mod files. Txtar-based multi-file support was added to the playground (that the tour uses for executing snippets) in golang.org/issue/32040, but the web UI hasn't been updated to have first-class separate <textarea> elements or tabs for editing multiple files. For now, we can get by with providing a default go.mod file for all tour snippets, since they only need some packages in the tour module. Update to a newer version of the golang.org/x/tools/playground/socket package which includes multi-file snippet support added in CL 204237. For golang/go#44243. Change-Id: Ib05725c52fbe43658b2f22ac728b1e901e635824 Reviewed-on: https://go-review.googlesource.com/c/tour/+/291889 Trust: Dmitri Shuralyov <dmitshur@golang.org> Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'go.mod')
-rw-r--r--go.mod2
1 files changed, 1 insertions, 1 deletions
diff --git a/go.mod b/go.mod
index 1af74d3..1abb78d 100644
--- a/go.mod
+++ b/go.mod
@@ -2,4 +2,4 @@ module golang.org/x/tour
go 1.11
-require golang.org/x/tools v0.0.0-20190312164927-7b79afddac43
+require golang.org/x/tools v0.1.0