Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reproducible build fails #13495

Closed
4 tasks done
expiringplatform opened this issue Apr 1, 2024 · 2 comments
Closed
4 tasks done

Reproducible build fails #13495

expiringplatform opened this issue Apr 1, 2024 · 2 comments

Comments

@expiringplatform
Copy link

expiringplatform commented Apr 1, 2024


Bug description

When trying to build version 7.2.1 using the instructions from https://github.com/signalapp/Signal-Android/blob/main/reproducible-builds/README.md the build fails with the error show below. A similar looking issue is described in the community forum
The automated pipeline for reproducible builds seems to be failing since some weeks.

Error message:

> Configure project :Signal-Android
fatal: detected dubious ownership in repository at '/project'
To add an exception for this directory, call:

	git config --global --add safe.directory /project

FAILURE: Build failed with an exception.

* Where:
Build file '/project/app/build.gradle.kts' line: 617

* What went wrong:
Process 'command 'git'' finished with non-zero exit value 128

Steps to reproduce

  • Clone the repo
  • Checkout v7.2.1
  • Following the reproducible build instructions build the docker image and run the build

Actual result: The build fails with the above error message
Expected result: The build finishes successfully

Screenshots

Device info

Device: n/a
Android version: n/a
Signal version: 7.2.1

Link to debug log

Full output:
https://gist.github.com/expiringplatform/652befb79f309daee9a26083b26957e1

@ElNatcho
Copy link

I have the same issue for version v7.1.3.

However, adding git config --global --add safe.directory /project to the reproducible-builds/Dockerfile seems to work as a workaround for me at the time.

e.g.:

diff --git a/reproducible-builds/Dockerfile b/reproducible-builds/Dockerfile
index 80c01db1bd..90ed823cf3 100644
--- a/reproducible-builds/Dockerfile
+++ b/reproducible-builds/Dockerfile
@@ -32,3 +32,5 @@ RUN yes | sdkmanager --sdk_root="${ANDROID_HOME}" "platforms;${ANDROID_API_LEVEL
 RUN yes | sdkmanager --licenses --sdk_root="${ANDROID_HOME}"
 
 RUN rm -rf ${ANDROID_HOME}/tools
+
+RUN git config --global --add safe.directory /project

@dalamsya50
Copy link
Contributor

I'll be working on solving this issue. Contributing to this open source project for a school assignment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants