Skip to content

Changes to symlinked files are not picked up by the change detector #9

@cbarrete

Description

@cbarrete

Say I have the following build file:

cxx_binary(
    name = "original",
    srcs = ["main.cpp"],
)

cxx_binary(
    name = "symlink",
    srcs = ["symlink.cpp"],
)

where

> ls -l main.cpp symlink.cpp 
-rw-r--r-- 1 user user 58 Apr 17 17:36 main.cpp
lrwxrwxrwx 1 user user  8 Apr 17 17:37 symlink.cpp -> main.cpp

A change to main.cpp will only output original as being affected, not symlink. I assume that this is because the change detector only considers the files in changes.txt/the VCS dump, which don't consider symlinks?

Is there a recommended way to deal with this?

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