-
-
Notifications
You must be signed in to change notification settings - Fork 34
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
- I have the latest version of mani
- I have searched through the existing issues
Info
-
OS
- Linux
- Mac OS X
- Windows
- other
-
Shell
- Bash
- Zsh
- Fish
- Powershell
- other
Version: 0.31.0
Commit: 73aa308
Date: 2025-05-26T14:46:39Z
Problem / Steps to reproduce
I am using a terminal window to the right of my IDE which often has a short number of columns (50-80, varies). When pulling in repositories via mani sync I got a panic:
panic: strings: negative Repeat count
goroutine 1 [running]:
strings.Repeat({0x102f557f0?, 0x14000304060?}, 0x58?)
/opt/hostedtoolcache/go/1.23.9/x64/src/strings/strings.go:569 +0x588
github.com/alajmo/mani/core/exec.printHeader({0x102fffb18, 0x14000110018}, 0x0, 0x1, {0x14000117780?, 0x102f6cc6c?}, {0x0, 0x0}, {0x0, {0x1032a9980, ...}, ...})
/home/runner/work/mani/mani/core/exec/text.go:232 +0x310
github.com/alajmo/mani/core/exec.RunTextCmd({0x0, 0x0, {{0x14000117780, 0x3e}, {0x1400023c300, 0x4c}, {0x1032dc820, 0x0, 0x0}, 0x0, ...}, ...}, ...)
/home/runner/work/mani/mani/core/exec/text.go:137 +0x120
github.com/alajmo/mani/core/exec.(*Exec).TextWork(0x140001e7958?, 0x0, 0x0?, 0x0, {0x102fffb18, 0x14000110018}, {0x102fffb18, 0x14000110020})
/home/runner/work/mani/mani/core/exec/text.go:114 +0x52c
github.com/alajmo/mani/core/exec.(*Exec).Text.func2(0x38?, 0x140001e7a38?, 0x4?, {0x102fffb18?, 0x14000110018?}, {0x102fffb18?, 0x14000110020?}, 0x10?, {{0x14000117780, 0x3e}, ...}, ...)
/home/runner/work/mani/mani/core/exec/text.go:41 +0x88
github.com/alajmo/mani/core/exec.(*Exec).Text(0x14000332008, 0x0, {0x102fffb18, 0x14000110018}, {0x102fffb18, 0x14000110020})
/home/runner/work/mani/mani/core/exec/text.go:42 +0x3ec
github.com/alajmo/mani/core/exec.CloneRepos(0x1032b6ce0, {0x140002ce000, 0x33, 0x0?}, {0x0, 0x0, 0x1, 0x0, 0x0, 0x4})
/home/runner/work/mani/mani/core/exec/clone.go:236 +0xc50
github.com/alajmo/mani/cmd.runSync(0x1032b6ce0, {0x1032dc820, 0x0, 0x0}, {0x0, 0x0, {0x1032dc820, 0x0, 0x0}, {0x0, ...}, ...}, ...)
/home/runner/work/mani/mani/cmd/sync.go:142 +0x1e4
github.com/alajmo/mani/cmd.syncCmd.func1(0x14000230608, {0x1032dc820, 0x0, 0x0})
/home/runner/work/mani/mani/cmd/sync.go:59 +0x1b8
github.com/spf13/cobra.(*Command).execute(0x14000230608, {0x1032dc820, 0x0, 0x0})
/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.9.1/command.go:1019 +0x814
github.com/spf13/cobra.(*Command).ExecuteC(0x1032af680)
/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.9.1/command.go:1148 +0x350
github.com/spf13/cobra.(*Command).Execute(...)
/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.9.1/command.go:1071
github.com/alajmo/mani/cmd.Execute()
/home/runner/work/mani/mani/cmd/root.go:41 +0x24
main.main()
/home/runner/work/mani/mani/main.go:8 +0x1c
Name of the repository is redacted but you should be able to use a similarly long name inside a small terminal window to replicate:
projects:
some-really-long-project-name-which-crashes-the-reporter-oh-no:
url: git@github.com:some-org/some-really-long-project-name-which-crashes-the-reporter-oh-no.gitmani sync
Thanks for your work on mani, it's a great tool 🙂
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working