mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 15:45:38 +00:00
9ad412ea0b
A simple 'go test -modfile=<path>' won't work properly for the end-to-end tests, since they run 'go build' under the hood as well. To properly propagate the flag, we need to use GOFLAGS. Since -modfile is always relative to the current directory, we can't use it to test many packages at once, nor can we use it via 'go test ./gogio'. While at it, document this distinction in go.local.mod to prevent others getting confused like I did. Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
21 lines
544 B
Modula-2
21 lines
544 B
Modula-2
// Keep in sync with go.mod; the only difference should be the gioui.org
|
|
// replace. To use it:
|
|
//
|
|
// cd gogio
|
|
// GOFLAGS=-modfile=../go.local.mod go test
|
|
|
|
module gioui.org/cmd
|
|
|
|
go 1.13
|
|
|
|
require (
|
|
gioui.org v0.0.0-00010101000000-000000000000
|
|
github.com/chromedp/cdproto v0.0.0-20191114225735-6626966fbae4
|
|
github.com/chromedp/chromedp v0.5.2
|
|
golang.org/x/image v0.0.0-20190802002840-cff245a6509b
|
|
golang.org/x/sync v0.0.0-20190423024810-112230192c58
|
|
golang.org/x/tools v0.0.0-20190927191325-030b2cf1153e
|
|
)
|
|
|
|
replace gioui.org => ../
|