Skip to content

Feature request: Add serverpod generate --check for CI #6041

Open

Description

@mathis6787

Add a read-only mode that computes the same output as serverpod generate and compares it with the files on disk. It should report missing, outdated, or obsolete generated files for the server, client, and test tools.

  • Exit with 0 when the generated files match and 1 when regeneration is needed.
  • Reuse the normal generation and formatting pipeline without rewriting project files.
  • List the affected paths so developers know what to regenerate and commit.

This isn't a blocker, since it's pretty easy to achieve in CI by running serverpod generate followed by a Git status check. However, it would be a nice-to-have feature, especially since similar functionality already exists in build_runner build --only-check and other frameworks and code generation tools across different languages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions