Skip to content

Commit 1ee31a4

Browse files
Fix touch shard.lock after checkout (#350)
1 parent 71cd5f3 commit 1ee31a4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

linux/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,14 @@ ARG musl_target
6969
RUN git clone https://github.com/crystal-lang/shards \
7070
&& cd shards \
7171
&& git checkout ${shards_version} \
72+
# FIXME: This is a workaround for shards' Makefile not touching `shard.lock`
73+
# when SHARDS=false
74+
&& touch shard.lock \
7275
&& make SHARDS=false CRYSTAL=/crystal/bin/crystal \
7376
FLAGS="--stats --target ${musl_target} --static ${release:+--release}" \
7477
\
7578
&& bin/shards --version \
76-
&& ( (readelf --program-headers bin/shards | grep -q "Elf file type is EXEC") || { echo 'shards is not statically linked'; exit 1; }) \
77-
&& readelf --program-headers bin/shards
79+
&& ( (readelf --program-headers bin/shards | grep -q "Elf file type is EXEC") || { echo 'shards is not statically linked'; exit 1; })
7880

7981
COPY --from=bdwgc /bdwgc/.libs/libgc.a /libgc-debian.a
8082

0 commit comments

Comments
 (0)