hooks
hooks copied to clipboard
conan-center hook fails on symlinks
ERROR: [HOOK - conan-center.py] pre_export(): [Errno 62] Too many levels of symbolic links: '/Users/sse4/bincrafters/test-symlinks/test'
Traceback (most recent call last):
File "/Users/sse4/bincrafters/conan/conans/client/hook_manager.py", line 58, in execute
method(output=output, **kwargs)
File "/Users/sse4/.conan/hooks/conan-center.py", line 58, in wrapper
ret = func(output, *args, **kwargs)
File "/Users/sse4/.conan/hooks/conan-center.py", line 142, in pre_export
@run_test("RECIPE FOLDER SIZE", output)
File "/Users/sse4/.conan/hooks/conan-center.py", line 67, in tmp
ret = func(out)
File "/Users/sse4/.conan/hooks/conan-center.py", line 151, in test
total_size += os.path.getsize(file_path)
File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/genericpath.py", line 57, in getsize
return os.stat(filename).st_size
OSError: [Errno 62] Too many levels of symbolic links: '/Users/sse4/bincrafters/test-symlinks/test'
repro:
mkdir test-symlinks
cd test-symlinks
conan new test/1.0@user/testing
ln -s test test
conan create . user/testing
I think you were using the conan center hook proposed in #62, right?