dhth / mult

Run a command multiple times and glance at the outputs via a TUI
https://tools.dhruvs.space/mult
MIT License
20 stars 1 forks source link

Too many errors #1

Closed richardji7 closed 2 weeks ago

richardji7 commented 1 month ago

go version go1.22.3 linux/amd64

/usr/local/go/bin/go install github.com/dhth/mult@latest go: downloading github.com/charmbracelet/bubbles v0.18.0 go: downloading github.com/charmbracelet/lipgloss v0.10.0 go: downloading github.com/charmbracelet/bubbletea v0.25.0 go: downloading github.com/muesli/reflow v0.3.0 go: downloading github.com/muesli/termenv v0.15.2 go: downloading github.com/rivo/uniseg v0.4.7 go: downloading github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81 go: downloading github.com/mattn/go-isatty v0.0.18 go: downloading github.com/sahilm/fuzzy v0.1.1-0.20230530133925-c48e322e2a8f go: downloading github.com/mattn/go-localereader v0.0.1 go: downloading github.com/muesli/ansi v0.0.0-20211018074035-2e021307bc4b go: downloading github.com/muesli/cancelreader v0.2.2 go: downloading golang.org/x/sync v0.1.0 go: downloading golang.org/x/term v0.6.0 go: downloading github.com/mattn/go-runewidth v0.0.15 go: downloading github.com/atotto/clipboard v0.1.4 go: downloading golang.org/x/sys v0.12.0 go: downloading github.com/aymanbagabas/go-osc52/v2 v2.0.1 go: downloading github.com/lucasb-eyer/go-colorful v1.2.0

runtime/internal/sys

/usr/local/go/src/runtime/internal/sys/intrinsics_common.go:9:5: len8tab redeclared in this block /usr/local/go/src/runtime/internal/sys/intrinsics.go:76:7: other declaration of len8tab /usr/local/go/src/runtime/internal/sys/intrinsics_common.go:28:5: ntz8tab redeclared in this block /usr/local/go/src/runtime/internal/sys/intrinsics.go:25:7: other declaration of ntz8tab /usr/local/go/src/runtime/internal/sys/intrinsics_common.go:48:6: Len64 redeclared in this block /usr/local/go/src/runtime/internal/sys/intrinsics.go:99:6: other declaration of Len64 /usr/local/go/src/runtime/internal/sys/intrinsics_common.go:66:7: m0 redeclared in this block /usr/local/go/src/runtime/internal/sys/intrinsics.go:117:7: other declaration of m0 /usr/local/go/src/runtime/internal/sys/intrinsics_common.go:67:7: m1 redeclared in this block /usr/local/go/src/runtime/internal/sys/intrinsics.go:118:7: other declaration of m1 /usr/local/go/src/runtime/internal/sys/intrinsics_common.go:68:7: m2 redeclared in this block /usr/local/go/src/runtime/internal/sys/intrinsics.go:119:7: other declaration of m2 /usr/local/go/src/runtime/internal/sys/intrinsics_common.go:71:6: OnesCount64 redeclared in this block /usr/local/go/src/runtime/internal/sys/intrinsics.go:122:6: other declaration of OnesCount64 /usr/local/go/src/runtime/internal/sys/intrinsics_common.go:101:5: deBruijn64tab redeclared in this block /usr/local/go/src/runtime/internal/sys/intrinsics.go:16:5: other declaration of deBruijn64tab /usr/local/go/src/runtime/internal/sys/intrinsics_common.go:108:7: deBruijn64 redeclared in this block /usr/local/go/src/runtime/internal/sys/intrinsics.go:23:7: other declaration of deBruijn64 /usr/local/go/src/runtime/internal/sys/intrinsics_common.go:111:6: TrailingZeros64 redeclared in this block /usr/local/go/src/runtime/internal/sys/intrinsics.go:53:6: other declaration of TrailingZeros64 /usr/local/go/src/runtime/internal/sys/intrinsics_common.go:111:6: too many errors

dhth commented 1 month ago

I gave this a shot in a docker container running the image golang:1.22.3-alpine3.20 and couldn't reproduce it.

/go # uname -a
Linux fe3bb971ea8e 6.6.12-linuxkit #1 SMP Thu Feb  8 06:36:34 UTC 2024 x86_64 Linux
/go # which go
/usr/local/go/bin/go
/go # /usr/local/go/bin/go install github.com/dhth/mult@latest
go: downloading github.com/dhth/mult v0.1.0
go: downloading github.com/charmbracelet/lipgloss v0.10.0
go: downloading github.com/charmbracelet/bubbles v0.18.0
go: downloading github.com/charmbracelet/bubbletea v0.25.0
go: downloading github.com/muesli/reflow v0.3.0
go: downloading github.com/muesli/termenv v0.15.2
go: downloading github.com/rivo/uniseg v0.4.7
go: downloading github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81
go: downloading github.com/mattn/go-isatty v0.0.18
go: downloading github.com/mattn/go-localereader v0.0.1
go: downloading github.com/muesli/ansi v0.0.0-20211018074035-2e021307bc4b
go: downloading github.com/muesli/cancelreader v0.2.2
go: downloading golang.org/x/sync v0.1.0
go: downloading golang.org/x/term v0.6.0
go: downloading github.com/mattn/go-runewidth v0.0.15
go: downloading github.com/sahilm/fuzzy v0.1.1-0.20230530133925-c48e322e2a8f
go: downloading github.com/aymanbagabas/go-osc52/v2 v2.0.1
go: downloading github.com/lucasb-eyer/go-colorful v1.2.0
go: downloading golang.org/x/sys v0.12.0
go: downloading github.com/atotto/clipboard v0.1.4
/go # mult -s -delay-ms=1000 date
/go # mult -h
Run a command multiple times and glance at the outputs.

Usage: mult [flags]

Flags:
  -delay-ms int
        time to sleep for between runs
  -ff
        whether to stop after first failure
  -i    accept flag values interactively (takes precendence over -n)
  -n int
        number of times to run the command (default 5)
  -s    whether to invoke the command sequentially
/go # go version
go version go1.22.3 linux/amd64

There are precompiled binaries on the releases page. Would that solve your problem in the short term?

richardji7 commented 1 month ago

Yes, I will check out the binaries. Thanks.