iv-org / invidious

Invidious is an alternative front-end to YouTube
https://invidious.io
GNU Affero General Public License v3.0
16.19k stars 1.79k forks source link

[Question] Debian 12 does not have shards command #4797

Closed tunloop closed 2 months ago

tunloop commented 2 months ago

Describe the bug Following the instructions for manual set up here: https://docs.invidious.io/installation/#install-the-dependencies I attempted to compile invidious, but it seems shards command is not available on Debian 12.

Steps to Reproduce Logs

# su - invidious
$ cd invidious
$ ls -l
total 188
drwxr-xr-x 7 root root  4096 Jul 18 11:31 assets
-rw-r--r-- 1 root root 72991 Jul 18 11:31 CHANGELOG_legacy.md
-rw-r--r-- 1 root root   921 Jul 18 11:31 CHANGELOG.md
drwxr-xr-x 4 root root  4096 Jul 18 11:31 config
drwxr-xr-x 2 root root  4096 Jul 18 11:31 docker
-rw-r--r-- 1 root root  1691 Jul 18 11:31 docker-compose.yml
-rw-r--r-- 1 root root   335 Jul 18 11:31 invidious.service
drwxr-xr-x 2 root root  4096 Jul 18 11:31 kubernetes
-rw-r--r-- 1 root root 34519 Jul 18 11:31 LICENSE
drwxr-xr-x 2 root root  4096 Jul 18 11:31 locales
-rw-r--r-- 1 root root  2314 Jul 18 11:31 Makefile
drwxr-xr-x 2 root root  4096 Jul 18 11:31 mocks
-rw-r--r-- 1 root root  6852 Jul 18 11:31 README.md
drwxr-xr-x 2 root root  4096 Jul 18 11:31 screenshots
drwxr-xr-x 3 root root  4096 Jul 18 11:31 scripts
-rw-r--r-- 1 root root  1037 Jul 18 11:31 shard.lock
-rw-r--r-- 1 root root   768 Jul 18 11:31 shard.yml
drwxr-xr-x 4 root root  4096 Jul 18 11:31 spec
drwxr-xr-x 4 root root  4096 Jul 18 11:31 src
-rw-r--r-- 1 root root    47 Jul 18 11:31 TRANSLATION
-rw-r--r-- 1 root root  1395 Jul 18 11:31 videojs-dependencies.yml
$ make
shards install --production
make: shards: No such file or directory
make: *** [Makefile:41: get-libs] Error 127
$ exit
# apt list crystal
crystal/stable,now 1.6.0+dfsg-3 amd64 [installed]
# find / -iname *shard*
/home/invidious/invidious/shard.lock
/home/invidious/invidious/shard.yml
/usr/lib/crystal/lib/compiler/crystal/tools/init/template/shard.yml.ecr
unixfox commented 2 months ago

Please ask to crystal language community: https://crystal-lang.org/community/

That's not an issue with invidious