Skip to content

Commit 2d082f5

Browse files
committed
ci: use submodule for backend cargo dep
1 parent 8946eb7 commit 2d082f5

File tree

9 files changed

+294
-7
lines changed

9 files changed

+294
-7
lines changed

.github/workflows/release-binaries.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ jobs:
4646
uses: actions/[email protected]
4747
with:
4848
fetch-depth: 0
49+
submodules: true
4950
token: ${{ steps.generate-token.outputs.token }}
5051

5152
- name: Setup Node

.github/workflows/release-plz.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
uses: actions/[email protected]
3434
with:
3535
fetch-depth: 0
36+
submodules: true
3637
token: ${{ steps.generate-token.outputs.token }}
3738

3839
- name: Setup Node

.gitmodules

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
[submodule "camera/esp-camera-rs"]
22
path = camera/esp-camera-rs
33
url = ../esp-camera-rs.git
4+
5+
[submodule "backend/mdns"]
6+
path = backend/mdns
7+
url = ../mdns.git
8+
branch = multihome-mdns-old-deps

.pre-commit-config.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ repos:
1919
rev: v0.13.0
2020
hooks:
2121
- id: markdownlint-cli2
22+
exclude: "CHANGELOG"
2223
- repo: local
2324
hooks:
2425
- id: sqlx
@@ -40,7 +41,8 @@ repos:
4041
entry: cargo clippy
4142
language: system
4243
types: [rust]
43-
args: ["--manifest-path", "./backend/Cargo.toml", "--fix", "--allow-dirty", "--allow-staged", "--all-targets"]
44+
# TODO: use `--exclude` to ignore mdns submodule once clippy is fixed https://github.com/rust-lang/rust-clippy/issues/9555
45+
args: ["--manifest-path", "./backend/Cargo.toml", "--fix", "--allow-dirty", "--allow-staged", "--all-targets", "--", "--no-deps"]
4446
pass_filenames: false
4547
- id: fmt
4648
name: fmt

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ Made using the following resources:
6262
| [gatekeeper source code][gatekeeper] | [Unlicense][gatekeeper-license] |
6363
| [`esp-camera-rs` package fork][cam-rs] | [MIT][cam-rs-license] |
6464
| [Geist font][geist] | [OFL-1.1][geist-license] |
65-
|[`mdns` examples][mdns] | [MIT][mdns-license] |
65+
| [`mdns` package fork][mdns] | [MIT][mdns-license] |
66+
| [`mdns` examples][mdns-examples] | [MIT][mdns-license] |
6667

6768
[^1]: [*"...this solution can be customized to suit your particular requirements.
6869
Don’t hesitate to make adjustments and employ this code according to your
@@ -117,7 +118,8 @@ video-to-image conversion needs."*][video2image-medium]
117118
[cam-rs-license]: https://github.com/hnz1102/esp-camera-rs/blob/main/LICENSE
118119
[geist]: https://github.com/vercel/geist-font
119120
[geist-license]: https://github.com/vercel/geist-font/blob/main/OFL.txt
120-
[mdns]: https://github.com/dylanmckay/mdns/tree/master/examples
121-
[mdns-license]: https://github.com/dylanmckay/mdns/blob/master/LICENSE
121+
[mdns]: https://github.com/PhysicalGraph/mdns
122+
[mdns-examples]: https://github.com/PhysicalGraph/mdns/tree/master/examples
123+
[mdns-license]: https://github.com/PhysicalGraph/mdns/blob/master/LICENSE
122124

123125
<!-- https://eslint.org/docs/latest/use/configure/language-options -->

0 commit comments

Comments
 (0)