Layr-Labs / Layr-Labs/devkit-cli

devkit avs call fails.

Open
#231 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
27
Forks
10
PR merge metrics
No merged PRs in 30d

Description

devkit avs call --signature="(uint256,string)" args='(5,"hello")'

Incorrect Usage: flag provided but not defined: -signature

NAME:
   devkit avs call - Submits tasks to the local devnet, triggers off-chain execution, and aggregates results

USAGE:
   devkit avs call [command options]

COMMANDS:
   help, h  Shows a list of commands or help for one command

OPTIONS:
   --verbose, -v        Enable verbose logging (default: false)
   --enable-telemetry   Enable telemetry collection on first run without prompting (default: false)
   --disable-telemetry  Disable telemetry collection on first run without prompting (default: false)
   --help, -h           show help
2025/07/16 14:04:58 flag provided but not defined: -signature

Also the autocomplete on zsh seems broken. When I type devkit avs call --sig and press tab, I get

devkit avs call --sigpanic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x30 pc=0x10501b3b8]

goroutine 1 [running]:
flag.(*FlagSet).Args(...)
	/opt/homebrew/Cellar/go/1.24.2/libexec/src/flag/flag.go:741
github.com/urfave/cli/v2.(*Context).Args(...)
	/Users/mm/go/pkg/mod/github.com/urfave/cli/v2@v2.27.6/context.go:167
github.com/urfave/cli/v2.checkCompletions(0x1063d8a00?)
	/Users/mm/go/pkg/mod/github.com/urfave/cli/v2@v2.27.6/help.go:467 +0x28
github.com/urfave/cli/v2.(*Command).Run(0x1063d8a00, 0x140005cc840, {0x140005cafc0, 0x3, 0x3})
	/Users/mm/go/pkg/mod/github.com/urfave/cli/v2@v2.27.6/command.go:160 +0xf0
github.com/urfave/cli/v2.(*Command).Run(0x1063da000, 0x140005cc700, {0x140005cc740, 0x4, 0x4})
	/Users/mm/go/pkg/mod/github.com/urfave/cli/v2@v2.27.6/command.go:269 +0x828
github.com/urfave/cli/v2.(*Command).Run(0x140000fd1e0, 0x140005cc500, {0x140000322a0, 0x5, 0x6})
	/Users/mm/go/pkg/mod/github.com/urfave/cli/v2@v2.27.6/command.go:269 +0x828
github.com/urfave/cli/v2.(*App).RunContext(0x140001ab000, {0x105ce9940, 0x140005d40a0}, {0x140000322a0, 0x6, 0x6})
	/Users/mm/go/pkg/mod/github.com/urfave/cli/v2@v2.27.6/app.go:333 +0x51c
main.main()
	/Users/mm/devkit-cli/cmd/devkit/main.go:63 +0x244

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at cmd/devkit/main.go around line 63 and reproduce the reported avs call and zsh completion command. Trace the avs call command registration and the completion path shown in the urfave/cli stack trace; done means the signature option is handled and pressing tab after --sig no longer panics.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, zsh
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.