Skip to content

Commit

Permalink
fix: copy submodules when building the snap (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
st3v3nmw authored Jan 29, 2024
1 parent 7f1be98 commit 51b8d32
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ Landscape service. There are two ways to do this:

## Developing

After cloning the repository, make sure you run the following command to pull the `snap-http` submodule:

```shell
git submodule update --init
```

To run the full test suite, run the following command:

```
Expand Down
3 changes: 2 additions & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ parts:
-- Guy Incognito <[email protected]> Fri, 1 Sep 2023 00:00:00 +0000
EOF
git archive --prefix landscape-client-0.0.1/ HEAD | tar -x
mkdir -p landscape-client-0.0.1
git ls-files --recurse-submodules | xargs -I {} cp -r --parents {} landscape-client-0.0.1/
rm -rf landscape-client-0.0.1/debian
tar -czf landscape-client-0.0.1.tar.gz landscape-client-0.0.1
cp -r debian landscape-client-0.0.1
Expand Down

0 comments on commit 51b8d32

Please sign in to comment.