Skip to content

shards binary not reachable on MacOS #16746

@n-rodriguez

Description

@n-rodriguez

Bug Report

Hi there!

I use mise to setup local env and CI which basically :

  1. download Crystal archive from Github
  2. extract it in /Users/nicolas/.local/share/mise/installs/crystal/<version>
  3. add /Users/nicolas/.local/share/mise/installs/crystal/<version>/bin in $PATH

In MacOs archive, bin/crystal is a wrapper script which finally exec embedded/bin/crystal but there is no equivalent for the shards command 😢

Hence CI job fails with sh: shards: command not found : https://github.com/jbox-web/netbox-extractor/actions/runs/23123014508/job/67160475404

Linux archive :

nicolas@MacBook-Pro-de-Nicolas:~/Downloads/crystal-1.19.1-1$ tree -L 2
.
├── bin
│   ├── crystal
│   └── shards
├── lib
│   └── crystal
└── share
    ├── bash-completion
    ├── crystal
    ├── fish
    ├── licenses
    ├── man
    └── zsh

MacOS archive :

nicolas@MacBook-Pro-de-Nicolas:~/Downloads/crystal-1.19.1-1 2$ tree -L 2
.
├── bin
│   └── crystal
├── embedded
│   ├── bin
│   │   ├── crystal
│   │   ├── pcre2-config
│   │   ├── pcre2grep
│   │   ├── pcre2test
│   │   └── shards
│   ├── include
│   ├── lib
│   └── share
├── etc
│   ├── completion.bash
│   ├── completion.fish
│   ├── completion.zsh
│   ├── gdb
│   ├── lldb
│   ├── msvc
│   └── win-ci
├── license-cache
├── LICENSES
│   └── libffi-LICENSE
├── samples
└── src

Thank you!


Add a 👍 reaction to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind:bugA bug in the code. Does not apply to documentation, specs, etc.topic:infrastructure

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions