Skip to content

Should we gitignore generated well_known_types? #153

Open
@rwstauner

Description

In #149 I forgot to include the regenerated well_known_types, which led to a follow up PR #151.
I proposed adding a check to CI to avoid it happening again #152.

However Ufuk asked

I wonder if we should not be committing these files to the repo, but making their generation a part of building the gem, in the first place?

One negative is losing an easy way to view the diff (of the result of codegen changes).
One positive is that we wouldn't need the CI check because rake would actually build them after cloning.

If we add them to .gitignore but leave everything else the same, I think the experience would be the same even if you are doing development using a local clone as a dependency (as opposed to using a published gem version).

What other arguments are there for or against keeping them in the repo?

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