Running ‘test-mangoro-bin.R’ [0s/1s]
Running the tests in ‘tests/test-mangoro-bin.R’ failed.
Complete output:
  > library(nanonext)
  > library(processx)
  > library(nanoarrow)
  > library(mangoro)
  > 
  > # skip test if Sys.which cannot find go
  > if (nchar(Sys.which("go")) == 0) {
  +   quit(status = 0)
  + }
  > # vendored mangos version
  > get_mangos_version()
  [1] NA
  Warning message:
  In system2(go, c("list", "-m", "go.nanomsg.org/mangos/v3"), stdout = TRUE,  :
    running command ''/usr/local/go/bin/go' list -m go.nanomsg.org/mangos/v3 2>&1' had status 1
  > go_echo_code <- paste(
  +   "package main",
  +   "import (",
  +   '  "fmt"',
  +   '  "os"',
  +   '  "go.nanomsg.org/mangos/v3/protocol/rep"',
  +   '  _ "go.nanomsg.org/mangos/v3/transport/ipc"',
  +   ")",
  +   "func main() {",
  +   "  url := os.Args[1]",
  +   "  sock, err := rep.NewSocket()",
  +   "  if err != nil { fmt.Println(\"NewSocket error:\", err); os.Exit(1) }",
  +   "  if err := sock.Listen(url); err != nil { fmt.Println(\"Listen error:\", err); os.Exit(1) }",
  +   "  for {",
  +   "    msg, err := sock.Recv()",
  +   "    if err != nil { fmt.Println(\"Recv error:\", err); break }",
  +   '    newMsg := append(msg, []byte(" [echoed by Go]")...)',
  +   "    if err := sock.Send(newMsg); err != nil { fmt.Println(\"Send error:\", err); break }",
  +   "  }",
  +   "}",
  +   sep = "\n"
  + )
  > 
  > tmp_go <- tempfile(fileext = ".go")
  > writeLines(go_echo_code, tmp_go)
  > 
  > tmp_bin <- if (.Platform$OS.type == "windows") {
  +   tempfile(fileext = ".exe")
  + } else {
  +   tempfile()
  + }
  > mangoro_go_build(tmp_go, tmp_bin)
  GOMAXPROCS=1 /usr/local/go/bin/go 'build' '-mod=vendor' '-o' '/Volumes/Temp/tmp/RtmpwHISF5/file91867306d4ae' '/Volumes/Temp/tmp/RtmpwHISF5/file9186309b7e0.go'
  go: errors parsing go.mod:
  /Volumes/Builds/packages/big-sur-x86_64/results/4.5/mangoro.Rcheck/mangoro/go/go.mod:3: invalid go version '1.22.2': must match format 1.23
  
  Error in mangoro_go_build(tmp_go, tmp_bin) : Go build failed
  In addition: Warning message:
  In system(cmd, ignore.stdout = FALSE, ignore.stderr = FALSE, intern = TRUE,  :
    running command 'GOMAXPROCS=1 /usr/local/go/bin/go 'build' '-mod=vendor' '-o' '/Volumes/Temp/tmp/RtmpwHISF5/file91867306d4ae' '/Volumes/Temp/tmp/RtmpwHISF5/file9186309b7e0.go'' had status 1
  Execution halted