clog-tool / clog-cli

Generate beautiful changelogs from your Git commit history
MIT License
856 stars 43 forks source link

Alpine Linux: word unexpected #108

Closed emcniece closed 6 years ago

emcniece commented 6 years ago

Anyone using this in Alpine Linux? I'm seeing some interesting errors after obtaining via npm i -g clog-cli:

# clog
/usr/bin/clog: 1: /usr/bin/clog: �: not found
/usr/bin/clog: 1: /usr/bin/clog: ��������H__PAGEZERO�__TEXT�__text__TEXTp��p�__stubs__TEXT�__stub_helper__TEXTp��p��__gcc_except_tab__TEXT�����__const__TEXT�?*�__cstring__TEXT?�?__unwind_info__TEXT,__eh_frame__TEXT05��05h__DATA����: File name too long
/usr/bin/clog: 2: /usr/bin/clog: Syntax error: word unexpected (expecting ")")
# clog -v
/usr/bin/clog: 1: /usr/bin/clog: �: not found
/usr/bin/clog: 1: /usr/bin/clog: ��������H__PAGEZERO�__TEXT�__text__TEXTp��p�__stubs__TEXT�__stub_helper__TEXTp��p��__gcc_except_tab__TEXT�����__const__TEXT�?*�__cstring__TEXT?�?__unwind_info__TEXT,__eh_frame__TEXT05��05h__DATA����: File name too long
/usr/bin/clog: 2: /usr/bin/clog: Syntax error: word unexpected (expecting ")")
# uname -a
Linux 55712db13d2a 4.9.75-linuxkit-aufs #1 SMP Tue Jan 9 10:58:17 UTC 2018 x86_64 Linux
# npm -v
5.6.0
# node -v
v8.9.4

This looks like a cross-platform compilation issue. Here's the Dockerfile:

FROM mhart/alpine-node:8

RUN apk --no-cache add git \
 && npm i -g clog-cli

I'll try building this from source in the next day or two. Has anyone seen this before?

emcniece commented 6 years ago

Confirmed & resolved - Alpine linux should use the clog-v0.9.3-x86_64-unknown-linux-musl.tar.gz variant.