Skip to content

Symlinks to outside the destination directory not updatable since v9.9.1 #2426

@cbrown1234

Description

@cbrown1234

Describe the problem

Following this change fdbc016 _preserve_symlinks: true templates with symlinks that pointed outside the destination directory could not update.

This broke a template I use for subprojects of a monorepo that had symlinks referencing top level (parent dir) content.

Template

See test case in linked PR

To Reproduce

See test case in linked PR

Logs

Expected behavior

Templates should be able to create symlinks that point outside the destination directory, but not render content there

Screenshots/screencasts/logs

No response

Operating system

Linux

Operating system distribution and version

Ubuntu 22.04

Copier version

v9.9.1

Python version

Any

Installation method

pipx+pypi

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugtriageTrying to make sure if this is valid or not

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions