opt.: include core repos via submodules (#1046)

* opt.: include core repos via submodules

* fix: checkout submodules in analysis workflow

* fix: scope analysis to app sources

* refactor: move direct-included repos under packages
This commit is contained in:
lollipopkit🏳️‍⚧️
2026-02-07 00:58:56 +08:00
committed by GitHub
parent 67f091b2dc
commit a2922f9b0f
9 changed files with 43 additions and 33 deletions

View File

@@ -19,6 +19,7 @@ jobs:
- uses: actions/checkout@v6
with:
fetch-depth: 1
submodules: recursive
- uses: subosito/flutter-action@v2
with:
@@ -29,7 +30,7 @@ jobs:
# Consider passing '--fatal-infos' for slightly stricter analysis.
- name: Analyze project source
run: dart analyze
run: flutter analyze lib test
# Your project will need to have tests in test/ and a dependency on
# package:test for this step to succeed. Note that Flutter projects will

20
.gitmodules vendored Normal file
View File

@@ -0,0 +1,20 @@
[submodule "dartssh2"]
path = packages/dartssh2
url = https://github.com/lollipopkit/dartssh2
branch = master
[submodule "xterm"]
path = packages/xterm
url = https://github.com/lollipopkit/xterm.dart
branch = master
[submodule "fl_lib"]
path = packages/fl_lib
url = https://github.com/lollipopkit/fl_lib
branch = main
[submodule "fl_build"]
path = packages/fl_build
url = https://github.com/lppcg/fl_build.git
branch = main
[submodule "server_box_monitor"]
path = packages/server_box_monitor
url = https://github.com/lollipopkit/server_box_monitor
branch = main

1
packages/dartssh2 Submodule

Submodule packages/dartssh2 added at b6c1c7b42f

1
packages/fl_build Submodule

Submodule packages/fl_build added at 61ee37ea6f

1
packages/fl_lib Submodule

Submodule packages/fl_lib added at 5a653c5d82

1
packages/xterm Submodule

Submodule packages/xterm added at cdd22e4d0c

View File

@@ -366,11 +366,9 @@ packages:
dartssh2:
dependency: "direct main"
description:
path: "."
ref: "v1.0.293"
resolved-ref: "3eedfd55916eede70aeb28605469a43623a9791b"
url: "https://github.com/lollipopkit/dartssh2"
source: git
path: "packages/dartssh2"
relative: true
source: path
version: "2.12.0"
dbus:
dependency: transitive
@@ -479,11 +477,9 @@ packages:
fl_build:
dependency: "direct dev"
description:
path: "."
ref: "v1.0.53"
resolved-ref: "61ee37ea6f082592f5be56340b7746dce4ffbfda"
url: "https://github.com/lppcg/fl_build.git"
source: git
path: "packages/fl_build"
relative: true
source: path
version: "1.0.0"
fl_chart:
dependency: "direct main"
@@ -496,11 +492,9 @@ packages:
fl_lib:
dependency: "direct main"
description:
path: "."
ref: "v1.0.363"
resolved-ref: "4b745be6f33b2e7f274d44f26175df440345cefb"
url: "https://github.com/lollipopkit/fl_lib"
source: git
path: "packages/fl_lib"
relative: true
source: path
version: "0.0.1"
flutter:
dependency: "direct main"
@@ -1861,11 +1855,9 @@ packages:
xterm:
dependency: "direct main"
description:
path: "."
ref: "v4.0.13"
resolved-ref: "6343b0e5f744d2c11090d34690ad5049ebbc599b"
url: "https://github.com/lollipopkit/xterm.dart"
source: git
path: "packages/xterm"
relative: true
source: path
version: "4.0.0"
yaml:
dependency: transitive

View File

@@ -40,17 +40,13 @@ dependencies:
xml: ^6.4.2 # for parsing nvidia-smi
url_launcher: ^6.2.6
dartssh2:
git:
url: https://github.com/lollipopkit/dartssh2
ref: v1.0.293
path: packages/dartssh2
circle_chart:
git:
url: https://github.com/lollipopkit/circle_chart
ref: main
xterm:
git:
url: https://github.com/lollipopkit/xterm.dart
ref: v4.0.13
path: packages/xterm
computer:
git:
url: https://github.com/lollipopkit/dart_computer
@@ -64,9 +60,7 @@ dependencies:
url: https://github.com/lollipopkit/plain_notification_token
ref: v1.0.23
fl_lib:
git:
url: https://github.com/lollipopkit/fl_lib
ref: v1.0.363
path: packages/fl_lib
dependency_overrides:
# webdav_client_plus:
@@ -101,9 +95,7 @@ dev_dependencies:
# url: https://github.com/lollipopkit/riverpod_reg
# ref: v0.0.2
fl_build:
git:
url: https://github.com/lppcg/fl_build.git
ref: v1.0.53
path: packages/fl_build
flutter:
generate: true