Skip to content

Add a top-level Makefile in go-sdk to simplify running tests and linters #1

@donbachi

Description

@donbachi

Checklist

I agree to the terms within the OpenFGA Code of Conduct.
Describe the problem you'd like to have solved

Currently, contributors working on the Go SDK have to manually run commands like go test ./... or check the CI workflow to know how to run linting.
This adds friction for new contributors and makes it less obvious how to verify changes locally before opening a PR.

Adding a Makefile would make it much easier to run tests, lint, and format code consistently.

Describe the ideal solution

Add a Makefile at the root of the repository with the following common targets:

This allows a simple and consistent contributor workflow:

make test # run all unit tests
make lint # run lint checks
make fmt # auto-format Go code
Optionally, the Makefile could include a check target that runs both tests and linters:

check: fmt lint test

Alternatives and current workarounds

No response

References

Much of what needs to be done can be translated to the SDK code from here

Additional context

No response

openfga#250 (comment)

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