Skip to content

bug: custom command not working any more #2205

@jiacai2050

Description

@jiacai2050

Describe the Bug

I try implement custom command for asdf-zig, This is what my plugin looks like:

$ tree ~/.asdf/plugins/zig
~/.asdf/plugins/zig
├──LICENSE
├──Makefile
├──README.md
├──bin
│  ├──download
│  ├──install
│  ├──latest-stable
│  └──list-all
└──lib
   ├──utils.py
   └──commands
      ├──command-mirror-update.bash
      ├──command-mirror.bash
      └──command.bash

asdf zig mirror should execute command-mirror.bash script, but it show errors

$ asdf zig mirror
invalid command provided: zig

version: 0.18.0 (revision unknown)

Steps to Reproduce

See above.

Expected Behaviour

asdf zig mirror should execute command-mirror.bash script

Actual Behaviour

See above

Environment

OS:
Darwin luigi 25.0.0 Darwin Kernel Version 25.0.0: Wed Sep 17 21:41:39 PDT 2025; root:xnu-12377.1.9~141/RELEASE_ARM64_T8103 arm64

SHELL:
GNU bash, version 5.2.37(1)-release (aarch64-apple-darwin24.2.0)
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

BASH VERSION:
5.2.37(1)-release

ASDF VERSION:
0.18.0 (revision unknown)

ASDF INTERNAL VARIABLES:
ASDF_TOOL_VERSIONS_FILENAME=.tool-versions
ASDF_DATA_DIR=/Users/jiacai/.asdf
ASDF_CONFIG_FILE=/Users/jiacai/.config/asdf/config

ASDF INSTALLED PLUGINS:
zig       https://github.com/asdf-community/asdf-zig.git
          ebfb04815123a48124cfe8b36ad040f89e48dcc9

asdf plugins affected (if relevant)

zig, I'm the main contributor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions