Skip to content
This repository was archived by the owner on Mar 12, 2025. It is now read-only.
This repository was archived by the owner on Mar 12, 2025. It is now read-only.

go-generate: Does not work for multiple files in different packages #76

@mattayes

Description

@mattayes

Hi folks,

I tried to use the new go-generate hook and ran into an error:

go-generate..............................................................Failed
- hook id: go-generate
- exit code: 1

named files must all be in one directory; have path/to/a/package and path/to/another/package

As per the generate documentation it appears go generate can handle multiple files in the same package and multiple packages, however it can't handle multiple files in the same package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions