diff --git a/pkg/private/tar/build_tar.py b/pkg/private/tar/build_tar.py index 81ad03fe..559c02e3 100644 --- a/pkg/private/tar/build_tar.py +++ b/pkg/private/tar/build_tar.py @@ -184,7 +184,10 @@ def add_link(self, symlink, destination, mode=None, ids=None, names=None): names: (username, groupname) for the file to set ownership. An empty file will be created as `destfile` in the layer. """ - dest = self.normalize_path(symlink) + if not symlink.startswith("./"): + dest = self.normalize_path(symlink) + else: + dest = symlink self.tarfile.add_file( dest, tarfile.SYMTYPE,