Skip to content

Regeneration of file if already in place? #89

@cmeiklejohn

Description

@cmeiklejohn

I just spent a while debugging an issue with Riak KV, where if the src/.erl file that's generated by the tool, is already there but the include/ file is not, the include file is not regenerated. I ran into this because the src file had not been excluded by the .gitignore and had been accidentally committed. This caused all subsequent compilations to fail because the src file was never removed, and therefore the include file was never regenerated.

Is this expected behavior?

It also seems like with rebar3, these files should never be placed in the actual include/src directories, but only placed in the build output, therefore reducing the probability of this issue.

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