Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[infra] Remove stale submodule setup

Manav Rathi9c99fc278b29
diff --git a/.github/workflows/ensu-release.yml b/.github/workflows/ensu-release.yml
index 69fbb4027d..9f4d21c7af 100644
--- a/.github/workflows/ensu-release.yml
+++ b/.github/workflows/ensu-release.yml
@@ -242,10 +242,8 @@ jobs:
working-directory: mobile/native/android/apps/ensu
steps:
- - name: Checkout code and submodules
+ - name: Checkout code
uses: actions/checkout@v4
- with:
- submodules: recursive
- name: Set release tag
shell: bash
diff --git a/.github/workflows/locker-internal-release.yml b/.github/workflows/locker-internal-release.yml
index de092a65e4..78697a6941 100644
--- a/.github/workflows/locker-internal-release.yml
+++ b/.github/workflows/locker-internal-release.yml
@@ -18,10 +18,8 @@ jobs:
working-directory: mobile/apps/locker
steps:
- - name: Checkout code and submodules
+ - name: Checkout code
uses: actions/checkout@v4
- with:
- submodules: recursive
- name: Setup JDK 17
uses: actions/setup-java@v1
diff --git a/.github/workflows/locker-lint.yml b/.github/workflows/locker-lint.yml
index 60eab2071c..036836df09 100644
--- a/.github/workflows/locker-lint.yml
+++ b/.github/workflows/locker-lint.yml
@@ -20,10 +20,8 @@ jobs:
run:
working-directory: mobile/apps/locker
steps:
- - name: Checkout code and submodules
+ - name: Checkout code
uses: actions/checkout@v4
- with:
- submodules: recursive
- name: Verify frozen mobile pubspecs
run: ruby mobile/scripts/check_frozen_pubspecs.rb mobile/apps/locker
diff --git a/.github/workflows/locker-release.yml b/.github/workflows/locker-release.yml
index f3af2718a1..e3d15d7eaa 100644
--- a/.github/workflows/locker-release.yml
+++ b/.github/workflows/locker-release.yml
@@ -23,10 +23,8 @@ jobs:
working-directory: mobile/apps/locker
steps:
- - name: Checkout code and submodules
+ - name: Checkout code
uses: actions/checkout@v4
- with:
- submodules: recursive
- name: Free up disk space
run: |
diff --git a/.github/workflows/mobile-daily-internal.yml b/.github/workflows/mobile-daily-internal.yml
index 4bd811887b..57c083f84a 100644
--- a/.github/workflows/mobile-daily-internal.yml
+++ b/.github/workflows/mobile-daily-internal.yml
@@ -22,10 +22,8 @@ jobs:
working-directory: mobile/apps/photos
steps:
- - name: Checkout code and submodules
+ - name: Checkout code
uses: actions/checkout@v4
- with:
- submodules: recursive
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
diff --git a/.github/workflows/mobile-lint.yml b/.github/workflows/mobile-lint.yml
index fc0a3ca39b..35b9b6e419 100644
--- a/.github/workflows/mobile-lint.yml
+++ b/.github/workflows/mobile-lint.yml
@@ -25,10 +25,8 @@ jobs:
run:
working-directory: mobile/apps/photos
steps:
- - name: Checkout code and submodules
+ - name: Checkout code
uses: actions/checkout@v4
- with:
- submodules: recursive
- name: Verify frozen mobile pubspecs
run: ruby mobile/scripts/check_frozen_pubspecs.rb mobile/apps/photos
diff --git a/.github/workflows/mobile-packages-lint.yml b/.github/workflows/mobile-packages-lint.yml
index 734786a9dd..2d3fa6b9b6 100644
--- a/.github/workflows/mobile-packages-lint.yml
+++ b/.github/workflows/mobile-packages-lint.yml
@@ -121,10 +121,8 @@ jobs:
# Skip if no packages need linting
if: needs.detect-changes.outputs.lint_all == 'true' || needs.detect-changes.outputs.packages != ''
steps:
- - name: Checkout code and submodules
+ - name: Checkout code
uses: actions/checkout@v4
- with:
- submodules: recursive
- name: Install Flutter ${{ env.FLUTTER_VERSION }}
uses: subosito/flutter-action@v2
@@ -265,10 +263,8 @@ jobs:
runs-on: ubuntu-latest
if: needs.detect-changes.outputs.rust_changed == 'true'
steps:
- - name: Checkout code and submodules
+ - name: Checkout code
uses: actions/checkout@v4
- with:
- submodules: recursive
- name: Install Flutter ${{ env.FLUTTER_VERSION }}
uses: subosito/flutter-action@v2
@@ -341,10 +337,15 @@ jobs:
if: needs.detect-changes.outputs.lint_photos == 'true' || needs.detect-changes.outputs.lint_auth == 'true' || needs.detect-changes.outputs.lint_locker == 'true'
steps:
- name: Checkout code and submodules
+ if: needs.detect-changes.outputs.lint_auth == 'true'
uses: actions/checkout@v4
with:
submodules: recursive
+ - name: Checkout code
+ if: needs.detect-changes.outputs.lint_auth != 'true'
+ uses: actions/checkout@v4
+
- name: Install Flutter ${{ env.FLUTTER_VERSION }}
uses: subosito/flutter-action@v2
with:
diff --git a/.github/workflows/mobile-release.yml b/.github/workflows/mobile-release.yml
index 8f6bb6d499..dec5efdefb 100644
--- a/.github/workflows/mobile-release.yml
+++ b/.github/workflows/mobile-release.yml
@@ -24,10 +24,8 @@ jobs:
working-directory: mobile/apps/photos
steps:
- - name: Checkout code and submodules
+ - name: Checkout code
uses: actions/checkout@v4
- with:
- submodules: recursive
- name: Free up disk space
run: |
diff --git a/.github/workflows/photos-internal-release.yml b/.github/workflows/photos-internal-release.yml
index ece7ca2498..cfd4a7365e 100644
--- a/.github/workflows/photos-internal-release.yml
+++ b/.github/workflows/photos-internal-release.yml
@@ -23,8 +23,6 @@ jobs:
# Common Setup
- name: Checkout code
uses: actions/checkout@v4
- with:
- submodules: recursive
- name: Setup JDK 17
uses: actions/setup-java@v1
diff --git a/.gitmodules b/.gitmodules
index c2df0661ba..9d3537ce7f 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,7 +1,3 @@
-[submodule "auth/thirdparty/sentry-dart"]
- path = auth/thirdparty/sentry-dart
- url = https://github.com/ente-io/sentry-dart.git
- branch = sentry_flutter_ente
[submodule "auth/assets/simple-icons"]
path = mobile/apps/auth/assets/simple-icons
url = https://github.com/simple-icons/simple-icons.git
diff --git a/docs/docs/self-hosting/development/lima.md b/docs/docs/self-hosting/development/lima.md
index 6b53a4151f..9013d12713 100644
--- a/docs/docs/self-hosting/development/lima.md
+++ b/docs/docs/self-hosting/development/lima.md
@@ -34,8 +34,7 @@ Using a VM-local clone avoids host-mount permission differences.
limactl shell docker /bin/bash -lc '
cd ~ &&
git clone https://github.com/ente-io/ente.git &&
- cd ente &&
- git submodule update --init --recursive
+ cd ente
'
```
diff --git a/docs/docs/self-hosting/development/mobile-build.md b/docs/docs/self-hosting/development/mobile-build.md
index c36903a200..6855a1abd0 100644
--- a/docs/docs/self-hosting/development/mobile-build.md
+++ b/docs/docs/self-hosting/development/mobile-build.md
@@ -22,7 +22,6 @@ As a short summary, you can install Flutter and build the Photos app this way:
```sh
cd ente/mobile
-git submodule update --init --recursive
flutter pub get
# Android
flutter run --dart-define=endpoint=http://localhost:8080 --flavor independent --debug -t lib/main.dart
diff --git a/mobile/apps/locker/README.md b/mobile/apps/locker/README.md
index 19a53b0e40..9075602544 100644
--- a/mobile/apps/locker/README.md
+++ b/mobile/apps/locker/README.md
@@ -7,17 +7,15 @@ important documents in the cloud with secure sharing capabilities.
1. [Install Flutter v3.32.8](https://flutter.dev/docs/get-started/install).
-2. Pull in all submodules with `git submodule update --init --recursive`
-
-3. Install dependencies using one of these methods:
+2. Install dependencies using one of these methods:
- **Using Melos (recommended):** Install Melos with `dart pub global activate melos`, then from any folder inside `mobile/`, run `melos bootstrap`. This will install dependencies.
- **Using Flutter directly:** Run `flutter pub get` in `packages/strings` and this folder
-4. For Android, [setup your
+3. For Android, [setup your
keystore](https://docs.flutter.dev/deployment/android#create-an-upload-keystore)
and run `flutter build apk --release --flavor independent`
-5. For iOS, run `flutter build ios`
+4. For iOS, run `flutter build ios`
## βš™οΈ Develop
diff --git a/mobile/apps/photos/AGENTS.md b/mobile/apps/photos/AGENTS.md
index 417dfd75eb..3ec00b39bd 100644
--- a/mobile/apps/photos/AGENTS.md
+++ b/mobile/apps/photos/AGENTS.md
@@ -31,7 +31,6 @@ Regenerate Dart bindings when Rust APIs change and keep generated code in `lib/s
1. Install Flutter `3.32.8` with a Dart SDK between `>=3.3.0 <4.0.0`.
2. Install Rust along with `flutter_rust_bridge_codegen` via `cargo install flutter_rust_bridge_codegen`.
3. Regenerate Rust bindings whenever native APIs shift using `flutter_rust_bridge_codegen generate`.
-4. Initialize and refresh git submodules with `git submodule update --init --recursive`.
## Critical Practices
- `dart format .` must run before you commit so the tree stays uniformly formatted.
diff --git a/mobile/apps/photos/CLAUDE.md b/mobile/apps/photos/CLAUDE.md
index 98ed205a8f..caf3f71a61 100644
--- a/mobile/apps/photos/CLAUDE.md
+++ b/mobile/apps/photos/CLAUDE.md
@@ -161,7 +161,6 @@ lib/
1. Install Flutter v3.32.8 and Rust
2. Install Flutter Rust Bridge: `cargo install flutter_rust_bridge_codegen`
3. Generate Rust bindings: `flutter_rust_bridge_codegen generate`
-4. Update submodules: `git submodule update --init --recursive`
## Critical Coding Requirements
diff --git a/mobile/apps/photos/README.md b/mobile/apps/photos/README.md
index 7245f6e2f9..714b8c9825 100644
--- a/mobile/apps/photos/README.md
+++ b/mobile/apps/photos/README.md
@@ -48,13 +48,11 @@ You can alternatively install the build from PlayStore or F-Droid.
1. Install [Flutter v3.32.8](https://flutter.dev/docs/get-started/install) and [Rust](https://www.rust-lang.org/tools/install).
-2. Pull in all submodules with `git submodule update --init --recursive`
-
-3. Install dependencies using one of these methods:
+2. Install dependencies using one of these methods:
- **Using Melos (recommended):** Install Melos with `dart pub global activate melos`, then from any folder inside `mobile/`, run `melos run codegen:rust`. This will install dependencies and generate Rust bindings.
- **Using Flutter directly:** Run `flutter pub get`, then install [Flutter Rust Bridge](https://cjycode.com/flutter_rust_bridge/) with `cargo install flutter_rust_bridge_codegen` and run `flutter_rust_bridge_codegen generate` in both this folder and in `mobile/packages/rust`.
-4. On Android:
+3. On Android:
- For development, run `flutter run -t lib/main.dart --flavor independent`
@@ -62,7 +60,7 @@ You can alternatively install the build from PlayStore or F-Droid.
keystore](https://docs.flutter.dev/deployment/android#create-an-upload-keystore)
and run `flutter build apk --release --flavor independent`
-5. For iOS, run `flutter build ios`
+4. For iOS, run `flutter build ios`
Some common issues and troubleshooting tips are in [docs/dev](docs/dev.md).