adrium / goheif

go gettable decoder/converter for HEIF/HEIC based on libde265
45 stars 14 forks source link

Error failed to load package libde265 when run on pipeline #11

Open Supachai-Sukd opened 10 months ago

Supachai-Sukd commented 10 months ago

I use "github.com/adrium/goheif" to decode byte images on my machine it works on my machine but errors on the pipeline.

error message as below level=error msg="Running error: 1 error occurred:\n\t* can't run linter goanalysis_metalinter: buildir: failed to load package libde265: could not load export data: no export data for \"github.com/adrium/goheif/libde265\"

For the Dockerfile details below, I'm not sure if I need to install any additional packages.

ARG BUILDER_IMAGE=golang:1.19.1-alpine3.15 ARG BASE_IMAGE=alpine:3.13 FROM $BUILDER_IMAGE as builder

ENV GOOS=linux ENV GOARCH=amd64 ENV GOPRIVATE=gitlab.com/abc ENV APP_NAME=$APP_NAME RUN apk install g++ --no-cache RUN apk update && apk add --no-cache gcc libc-dev git ca-certificates tzdata libde265 && update-ca-certificates

robbymilo commented 4 months ago

https://github.com/gen2brain/heic works with https://github.com/gen2brain/heic/blob/main/heic.go#L18