Skip to content

Buf Generate Failure in Docker Container #1020

@tommy-carver

Description

@tommy-carver

I'm creating a github actions workflow to execute buf generate and build stubs for a project. Locally, buf generate works completely fine and builds the correct stubs.

However, when executed in a docker container or a github actions workflow, I get the following error: Failure: failed to initialize module for directory "proto" listed in buf.work.yaml: branch is not main

I do not understand what this means and have had trouble finding any direction when giving a look around the internet. Any guidance?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions