Skip to content

Build Issue #56

@pgsnimble

Description

@pgsnimble

Hey!!

I am trying to use this library to encode the video and I can't find a way to make it work, everytime I try to build the app I am always getting the following error:

 => ERROR [builder-debug 2/2] RUN --mount=type=cache,target=/root/.cache/go-build     go build -gcflags="all=-N -l" -ldflags "-X main.BuildVersion=dev-debug" -o /tmp/gobuild/bin/jbl                            0.5s
------
 > [builder-debug 2/2] RUN --mount=type=cache,target=/root/.cache/go-build     go build -gcflags="all=-N -l" -ldflags "-X main.BuildVersion=dev-debug" -o /tmp/gobuild/bin/jbl:
#0 0.489 # github.com/hraban/opus
#0 0.489 /go/pkg/mod/github.com/hraban/opus@v0.0.0-20230925203106-0188a62cb302/streams_map.go:32:23: undefined: Stream
#0 0.489 /go/pkg/mod/github.com/hraban/opus@v0.0.0-20230925203106-0188a62cb302/streams_map.go:36:40: undefined: Stream
#0 0.489 /go/pkg/mod/github.com/hraban/opus@v0.0.0-20230925203106-0188a62cb302/streams_map.go:42:30: undefined: Stream
#0 0.489 /go/pkg/mod/github.com/hraban/opus@v0.0.0-20230925203106-0188a62cb302/streams_map.go:53:31: undefined: Stream
#0 0.489 /go/pkg/mod/github.com/hraban/opus@v0.0.0-20230925203106-0188a62cb302/streams_map.go:62:25: undefined: Stream

Do you mind to help me?

This is a piece of my docker file

ARG UBUNTU_IMAGE_VERSION=24.04
ARG YT_DLP=2024.08.06

FROM golang:1.21.3 AS base

ENV CGO_ENABLED=0
ENV GOPRIVATE=github.com/ppaulogustavo

RUN go install github.com/jstemmer/go-junit-report@latest
RUN go install github.com/go-delve/delve/cmd/dlv@latest

WORKDIR /tmp/gobuild
COPY ./go.mod ./go.sum ./
RUN go mod download -x
COPY . .

FROM base as builder-debug
ARG BUILD_VERSION='dev-debug'

RUN apt-get update && apt-get install -y pkg-config libopus-dev libopusfile-dev moreutils

RUN --mount=type=cache,target=/root/.cache/go-build \
    go build -gcflags="all=-N -l" -ldflags "-X main.BuildVersion=${BUILD_VERSION}" -o /tmp/gobuild/bin/jbl

This is triggering the error when the build command is executed

Metadata

Metadata

Assignees

No one assigned

    Labels

    cannot reproCannot reproduce the issue

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions