ysbaddaden / panzer

Multi-process, zero-downtime service monitor for Crystal
29 stars 6 forks source link

Shards postinstall error #1

Open schovi opened 7 years ago

schovi commented 7 years ago

Trying this shard and failed right during installation. Shards give me this error

$ shards --verbose
Updating https://github.com/ysbaddaden/panzer.git
Installing panzer (master)
git ls-tree -r --full-tree --name-only master -- shard.yml
git archive --format=tar --prefix= master | tar -x -f - -C '/Users/schovi/work/panzer-test/lib/panzer'
git log -n 1 --pretty=%H master
git ls-tree -r --full-tree --name-only HEAD -- shard.yml
git show HEAD:shard.yml
Postinstall shards build --debug --release && mkdir ../../bin && cp bin/panzer* ../../bin

rm -rf '/Users/schovi/work/panzer-test/lib/panzer'
Failed shards build --debug --release && mkdir ../../bin && cp bin/panzer* ../../bin
:
Building: panzer
Error target panzer failed to compile:

OSX Sierra Crystal 0.20.4 (2017-01-06)

ysbaddaden commented 7 years ago

What version of Shards do you have? I can't reproduce the issue when using the git resolver, only with the path resolver —it creates a symlink, and Shards is following the symlink, so ../.. is invalid.

schovi commented 7 years ago

@ysbaddaden

version: Shards 0.7.1 (2017-01-06)

Not sure, what resolver is and how to change/test it?

ysbaddaden commented 7 years ago

You must have declared github: ysbaddaden/panzer so you are already using the git resolver. I don't know how to fix that. I guess I shall fix Shards (implement support for executables).