Skip to content

Error checking out a working copy that has a symlink loop #8348

@schpet

Description

@schpet

Description

if your working copy has a symlink loop, most jj commands stop working, only printing out an error.

Steps to Reproduce the Problem

jj git init loop
cd loop/
jj ci -m "hello"
ln -s uhoh uhoh
jj new @-

Expected Behavior

for the circular symlink to exist in my working copy.

note @martinvonz mentioned in discord:

please file a bug report. we should probably make that a warning instead, but maybe there's something i'm missing

Actual Behavior

an error is raised:

Internal error: Failed to check out commit a0d83e0d1d4f871cce39de77e4b33eed322b925f
Caused by:
1: Failed to validate path /private/tmp/loop/uhoh
2: Too many levels of symbolic links (os error 62)

Specifications

  • Platform: darwin
  • Version: jj 0.36.0

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