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
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