Skip to content

Commit ef8c5e1

Browse files
AlfredoG87ebadiere
andauthored
Fix gitmodules on 0.37 (#1960)
1905 Release fix for docker image create. (#1906) - Remove the .gitmodules file from the tools/foundry-example repo to move the release Signed-off-by: ebadiere <[email protected]> Signed-off-by: Alfredo Gutierrez <[email protected]> Co-authored-by: Eric Badiere <[email protected]>
1 parent 63170f7 commit ef8c5e1

File tree

5 files changed

+22
-17
lines changed

5 files changed

+22
-17
lines changed

tools/foundry-example/.gitmodules

Lines changed: 0 additions & 11 deletions
This file was deleted.

tools/foundry-example/README.md

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,36 @@ However, for cases where the submodule management in a nested directory as is at
2525
cd path_to/hedera-json-rpc-relay/tools/foundry-example
2626
```
2727

28-
2. **Initialize it as a Git repository**:
28+
2. Create a .gitmodules file with the content listed below:
29+
```bash
30+
touch .gitmodules
31+
```
32+
File Content:
33+
```
34+
[submodule "lib/forge-std"]
35+
path = lib/forge-std
36+
url = https://github.com/foundry-rs/forge-std
37+
[submodule "lib/openzeppelin-contracts"]
38+
path = lib/openzeppelin-contracts
39+
url = https://github.com/OpenZeppelin/openzeppelin-contracts
40+
branch = release-v4.9
41+
[submodule "lib/hedera-smart-contracts"]
42+
path = lib/hedera-smart-contracts
43+
url = https://github.com/hashgraph/hedera-smart-contracts
44+
branch = main
45+
```
46+
47+
3. **Initialize it as a Git repository**:
2948
```bash
3049
git init
3150
```
3251
33-
3. **Remove any existing submodule directories in the `lib` folder**. This ensures that we're starting from a clean state:
52+
4. **Remove any existing submodule directories in the `lib` folder**. This ensures that we're starting from a clean state:
3453
```bash
3554
rm -rf lib/*
3655
```
3756
38-
4. **Add the necessary submodules**(despite these already being defined in the `.gitmodules`):
57+
5. **Add the necessary submodules**(despite these already being defined in the `.gitmodules`):
3958
```bash
4059
git submodule add https://github.com/foundry-rs/forge-std lib/forge-std
4160
git submodule add -b release-v4.9 https://github.com/OpenZeppelin/openzeppelin-contracts lib/openzeppelin-contracts
Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)