build error
Job failed with exit code: 1. Reason: cache miss: [ 7/14] RUN echo "import re\ncode = open('MandreLib.py', 'r', encoding='utf-8').read()\n\ncode = 'from java import jclass\n' + code\n\ndef replace_java_import(match):\n pkg = match.group(1) # например 'org.telegram.messenger'\n imports = match.group(2).replace(' ', '').split(',') # ['ApplicationLoader', 'AndroidUtilities']\n lines = []\n for cls in imports:\n lines.append(f'{cls} = jclass("{pkg}.{cls}")')\n return '\n'.join(lines)\n\ncode = re.sub(r'^from (org[\.\w]+|android[\.\w]+|java[\.\w]+) import ([\w, ]+)', replace_java_import, code, flags=re.MULTILINE)\n\n\nopen('MandreLib.py', 'w', encoding='utf-8').write(code)\nprint('Java imports patched successfully!')\n" > patcher.py && python3 patcher.py cache miss: [14/14] WORKDIR /output cache miss: [ 9/14] RUN cython -3 MandreLib.py -o MandreLib.c cache miss: [ 8/14] RUN echo "try:\n import java\nexcept ImportError:\n class _M:\n def __getattr__(self, n): return _M()\n def __call__(self, *a, **k): return _M()\n java = _M()\n jclass = _M()\n" > mocks.py && cat mocks.py MandreLib.py > MandreLib_final.py && mv MandreLib_final.py MandreLib.py cache miss: [13/14] RUN mkdir /output && mv MandreLib.so /output/MandreLib.so cache miss: [12/14] RUN /build/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-strip --strip-unneeded MandreLib.so cache miss: [11/14] RUN /build/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android30-clang -fPIC -O3 -Wall -target aarch64-linux-android30 -Wno-unused-command-line-argument -I/usr/local/include/python3.11 -L. -lpython3.11 -o MandreLib.so MandreLib.c -shared -Wl,--allow-shlib-undefined cache miss: [10/14] RUN echo "int Py_Main(void){return 0;}" > stub.c && /build/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android30-clang -shared -o libpython3.11.so stub.c {"total":18,"completed":11,"user_total":14,"user_cached":5,"user_completed":7,"user_cacheable":13,"from":1,"miss":8,"client_duration_ms":10594}
Build logs:
Fetching error logs...