Skip to content

Commit

Permalink
Use specific commit for matter sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
MonicaisHer committed Jan 17, 2024
1 parent 1e5909b commit 6b8472e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion snapcraft/parts/plugins/matter_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def get_build_commands(self) -> List[str]:
commands.extend(
[
"if [ ! -d matter ]; then",
f" git clone --depth 1 -b {options.matter_sdk_version} {MATTER_REPO} matter;",
f" git clone {MATTER_REPO} matter && cd matter && git checkout {options.matter_sdk_version};",
"else",
" echo 'Matter repository already exists, skip clone';",
"fi",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ apps:
parts:
lighting-hello:
plugin: matter
matter-sdk-version: "master"
matter-sdk-version: "1536ca2" # use this commit with ptpython version fix; needs to be updated once sdk have a stable release
matter-zap-version: "v2023.11.13"
source: app
override-build: |
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/parts/plugins/test_matter_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def test_get_build_commands(part_info):
expected_commands.extend(
[
"if [ ! -d matter ]; then",
f" git clone --depth 1 -b {sdk_version} {MATTER_REPO} matter;",
f" git clone {MATTER_REPO} matter && cd matter && git checkout {options.matter_sdk_version};",
"else",
" echo 'Matter repository already exists, skip clone';",
"fi",
Expand Down

0 comments on commit 6b8472e

Please sign in to comment.