You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 28, 2018. It is now read-only.
For alpine-based Docker containers, binaries won't work without statically compiling, due to musl being the default libc:
# /usr/local/bin/migrate3
sh: /usr/local/bin/migrate3: not found
# ldd /usr/local/bin/migrate3
/lib64/ld-linux-x86-64.so.2 (0x55925953c000)
libpthread.so.0 => /lib64/ld-linux-x86-64.so.2 (0x55925953c000)
libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x55925953c000)
Error relocating /usr/local/bin/migrate3: __vfprintf_chk: symbol not found
Error relocating /usr/local/bin/migrate3: __fprintf_chk: symbol not found
This can be fixed by compiling without cgo enabled within Makefile, i.e.:
cd ./cli && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o build/migrate.linux-amd64 -ldflags='-X main.Version=$(VERSION)' -tags '$(DATABASE) $(SOURCE)' .
The text was updated successfully, but these errors were encountered:
For alpine-based Docker containers, binaries won't work without statically compiling, due to musl being the default libc:
This can be fixed by compiling without cgo enabled within Makefile, i.e.:
The text was updated successfully, but these errors were encountered: