Skip to content

Sharp edge: --overwrite with --output-path #1105

Description

@zabullet

It's not a bug, but a bit of a sharp edge.

The mechanism employed by --overwrite is to essentially rm -rf *

So for instance in you're in your repo and execute

--overwrite --output-path ./

It very aggressively removes everything.

Activity

  1. MoisMoshev commented on Nov 20, 2024

    @MoisMoshev

    I agree this is an issue, because it is useful to keep the generated client in git, and removing the directory also deletes the .git directory. Not something insurmountable, but an annoyance for sure.

  2. added a commit that references this issue on Dec 24, 2024
    ee27f31
  3. added a commit that references this issue on Dec 24, 2024
    99ae3a9
  4. added 2 commits that reference this issue on May 13, 2025
    57de884
    211ac50
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

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions