Skip to content

kratos new . removes .. #2710

@haoqixu

Description

@haoqixu

What happened:

图片

kratos new . will remove the parent directory of the ..

What you expected to happen:

Don't remove other content under the .. (and generate the codes under the current working directory)

How to reproduce it (as minimally and precisely as possible):

mkdir -p /tmp/aa/bb && mkdir -p /tmp/aa/cc
cd /tmp/aa/bb && kratos new .

kratos will remove /tmp/aa and move the cloned template to /tmp/aa

Anything else we need to know?:

Environment:

  • Kratos version (use kratos -v): kratos version v2.5.3
  • Go version (use go version): go version go1.19.5 darwin/amd64
  • OS (e.g: cat /etc/os-release): macOS
  • Others:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions