Skip to content

Broken installation of extension in development #9760

@IvanRibakov

Description

@IvanRibakov

Describe the bug

I tried installing extension in development from a local folder and while extension appears installed according to the list command, it is not executable.

Steps to reproduce the behavior

  1. Checkout https://github.com/IvanRibakov/gh-workflow-stats and navigate to the repo root
  2. Install extension from local folder: gh extensions install .
  3. Check that extension appears installed: gh ext list
  4. Invoke installed extension: gh workflow-stats -h

Expected vs actual behavior

Expecting extension in development installed from a local folder to be usable as if it was installed from Github repo tagged release, instead getting a broken installation that is unusable.

Logs

$ pwd
<some-path>/gh-workflow-stats

$ git status
On branch feature/filter_multiple_statuses
Your branch is up to date with 'origin/feature/filter_multiple_statuses'.

nothing to commit, working tree clean

$ gh ext list
no installed extensions found

$ GH_DEBUG=true gh extensions install .

$ gh ext list
NAME               REPO  VERSION
gh workflow-stats        

$ gh workflow-stats -h
failed to run extension: fork/exec /home/ivan/.local/share/gh/extensions/gh-workflow-stats/gh-workflow-stats: no such file or directory

$ ls -la /home/ivan/.local/share/gh/extensions/gh-workflow-stats
lrwxrwxrwx 1 ivan ivan 47 Oct 15 13:26 /home/ivan/.local/share/gh/extensions/gh-workflow-stats -> <some-path>/gh-workflow-stats

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementa request to improve CLIgh-extensionrelating to the gh extension commandhelp wantedContributions welcome

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions