Skip to content

cli: renku rm modules/__init__.py [...] #3693

@schymans

Description

@schymans

Describe the bug

I tried to remove all files from a folder using renku rm modules/*.

Details

When I executed afterwards git rm -r modules it worked without problems.

Renku version: 2.7.0
OS: Linux (#1 SMP Progress Linux 5.10.197-1~progress5+u1 (2023-10-04))
Python: 3.10.13

Traceback

Traceback (most recent call last):
  File "pydantic/decorator.py", line 40, in pydantic.decorator.validate_arguments.validate.wrapper_function
  File "pydantic/decorator.py", line 134, in pydantic.decorator.ValidatedFunction.call
  File "pydantic/decorator.py", line 206, in pydantic.decorator.ValidatedFunction.execute
  File "[...]/site-packages/renku/command/remove.py", line 112, in _remove
    run(["git", "rm", "-rf"] + final_sources, check=True)
  File "[...]/subprocess.py", line 526, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['git', 'rm', '-rf', '/home/stan/notebooks/jupyter/renku/fortress/modules/__init__.py', '/home/stan/notebooks/jupyter/renku/fortress/modules/plotting.py', '/home/stan/notebooks/jupyter/renku/fortress/modules/__pycache__']' returned non-zero exit status 128.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions