# Because of https://github.com/rogpeppe/go-internal/issues/11 we cannot
# define a txtar archive-generated file that is the golden output from txtar-savedir
# So we can't actually test the output for now, instead we just rely on a simple
# stdout check
txtar-savedir blah
! stderr .+
stdout '^module example.com/blah$'

-- blah/go.mod --
module example.com/blah

-- blah/main.go --
package main

import "fmt"

func main() {
  fmt.Println("Hello, world!")
}
