golang / go

The Go programming language
https://go.dev
BSD 3-Clause "New" or "Revised" License
123.95k stars 17.66k forks source link

x/tools/go/ssa: Example_buildPackage failures #67721

Open gopherbot opened 5 months ago

gopherbot commented 5 months ago
#!watchflakes
default <- pkg == "golang.org/x/tools/go/ssa" && test == "Example_buildPackage"

Issue created automatically to collect these failures.

Example (log):

=== RUN   Example_buildPackage
--- FAIL: Example_buildPackage (0.15s)
got:
hello.go:4:8: could not import fmt (can't find import: "fmt")
want:
package hello:
  func  init       func()
  var   init$guard bool
  func  main       func()
  const message    message = "Hello, World!":untyped string
...
# Location: hello.go:8:6
func main():
0:                                                                entry P:0 S:0
    t0 = new [1]any (varargs)                                       *[1]any
    t1 = &t0[0:int]                                                    *any
    t2 = make any <- string ("Hello, World!":string)                    any
    *t1 = t2
    t3 = slice t0[:]                                                  []any
    t4 = fmt.Println(t3...)                              (n int, err error)
    return

watchflakes

gopherbot commented 5 months ago

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "golang.org/x/tools/go/ssa" && test == "Example_buildPackage"
2024-05-24 14:37 x_tools-go1.21-windows-arm64 tools@e1b14a19 release-branch.go1.21@54c4745d x/tools/go/ssa.Example_buildPackage (log) === RUN Example_buildPackage --- FAIL: Example_buildPackage (0.15s) got: hello.go:4:8: could not import fmt (can't find import: "fmt") want: package hello: func init func() var init$guard bool func main func() const message message = "Hello, World!":untyped string ... # Location: hello.go:8:6 func main(): 0: entry P:0 S:0 t0 = new [1]any (varargs) *[1]any t1 = &t0[0:int] *any t2 = make any <- string ("Hello, World!":string) any *t1 = t2 t3 = slice t0[:] []any t4 = fmt.Println(t3...) (n int, err error) return

watchflakes