#2629·capnproto

`c++/LICENSE.txt` symlink breaks extraction with `strip_prefix`

Author: pgerellCreated Apr 21, 2026Updated May 12, 2026

In the release tarball, capnproto-1.4.0/c++/LICENSE.txt is a symlink to ../LICENSE rather than a real file. This causes problems for tools that extract only the c++/ subtree via strip_prefix, because the symlink target resolves outside the extracted directory and becomes dangling.

In particular, Bazel's rolling release now rejects this during extraction with:

Tar entries cannot refer to files outside of their directory:
v1.4.0.tar.gz has a link capnproto-1.4.0/c++/LICENSE.txt pointing to ../LICENSE

This is blocking the addition of [email protected] to the Bazel Central Registry (bazelbuild/bazel-central-registry#8215).

Suggested fix: Reverse the symlink. Make c++/LICENSE.txt the real file and LICENSE at the repo root a symlink pointing to c++/LICENSE.txt. This way the real file is always present when extracting the c++/ subtree.

Should I open a PR for this?