Skip to content

Commit

Permalink
Fix gitmodules on 0.37 (#1960)
Browse files Browse the repository at this point in the history
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 <ebadiere@gmail.com>
Signed-off-by: Alfredo Gutierrez <alfredo@swirldslabs.com>
Co-authored-by: Eric Badiere <ebadiere@gmail.com>
  • Loading branch information
AlfredoG87 and ebadiere authored Dec 5, 2023
1 parent 63170f7 commit ef8c5e1
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 17 deletions.
11 changes: 0 additions & 11 deletions tools/foundry-example/.gitmodules

This file was deleted.

25 changes: 22 additions & 3 deletions tools/foundry-example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,36 @@ However, for cases where the submodule management in a nested directory as is at
cd path_to/hedera-json-rpc-relay/tools/foundry-example
```

2. **Initialize it as a Git repository**:
2. Create a .gitmodules file with the content listed below:
```bash
touch .gitmodules
```
File Content:
```
[submodule "lib/forge-std"]
path = lib/forge-std
url = https://github.com/foundry-rs/forge-std
[submodule "lib/openzeppelin-contracts"]
path = lib/openzeppelin-contracts
url = https://github.com/OpenZeppelin/openzeppelin-contracts
branch = release-v4.9
[submodule "lib/hedera-smart-contracts"]
path = lib/hedera-smart-contracts
url = https://github.com/hashgraph/hedera-smart-contracts
branch = main
```
3. **Initialize it as a Git repository**:
```bash
git init
```
3. **Remove any existing submodule directories in the `lib` folder**. This ensures that we're starting from a clean state:
4. **Remove any existing submodule directories in the `lib` folder**. This ensures that we're starting from a clean state:
```bash
rm -rf lib/*
```
4. **Add the necessary submodules**(despite these already being defined in the `.gitmodules`):
5. **Add the necessary submodules**(despite these already being defined in the `.gitmodules`):
```bash
git submodule add https://github.com/foundry-rs/forge-std lib/forge-std
git submodule add -b release-v4.9 https://github.com/OpenZeppelin/openzeppelin-contracts lib/openzeppelin-contracts
Expand Down
1 change: 0 additions & 1 deletion tools/foundry-example/lib/forge-std
Submodule forge-std deleted from f73c73
1 change: 0 additions & 1 deletion tools/foundry-example/lib/hedera-smart-contracts
Submodule hedera-smart-contracts deleted from 350a72
1 change: 0 additions & 1 deletion tools/foundry-example/lib/openzeppelin-contracts
Submodule openzeppelin-contracts deleted from 9329cf

0 comments on commit ef8c5e1

Please sign in to comment.