From 34a2ed8107f8fc6aaade2215f8283648d5185905 Mon Sep 17 00:00:00 2001 From: Tiago Gomes Date: Thu, 2 Aug 2018 17:42:29 +0100 Subject: cas: ignore files of type socket These files are automatically generated on the bind() syscall and thus can be safely ignored. This fixes caching the build tree of projects that create a socket as part of their tests. Closes #500. --- buildstream/_artifactcache/cascache.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/buildstream/_artifactcache/cascache.py b/buildstream/_artifactcache/cascache.py index 1b2dc198f..2cf91def4 100644 --- a/buildstream/_artifactcache/cascache.py +++ b/buildstream/_artifactcache/cascache.py @@ -612,6 +612,8 @@ class CASCache(ArtifactCache): symlinknode = directory.symlinks.add() symlinknode.name = name symlinknode.target = os.readlink(full_path) + elif stat.S_ISSOCK(mode): + pass else: raise ArtifactError("Unsupported file type for {}".format(full_path)) -- cgit v1.2.1