Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix submodules branch error #25

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

zapaz
Copy link

@zapaz zapaz commented Oct 23, 2023

Fix this error on forge update

$  forge update
fatal : Impossible de trouver la révision refs/remotes/origin/v1.3.0 dans le chemin de sous-module 'lib/forge-std'
fatal : Échec de la récursion dans le chemin de sous-module 'lib/erc6551-reference'
Error:
git submodule exited with code 128: Chemin de sous-module 'lib/erc6551-reference' : '3585dc2cd3c3dbae461f137a7445fd6942917ffe' extrait

branch v1.3.0 doesn't exists on forge-std but v1 exists
branch v4.8.1 doesn't exists on oz lib but release-v4.8 exists

@jaydenwindle
Copy link
Contributor

@zapaz I just did a fresh clone of the repo and running forge install to download the dependencies worked fine. Can you expand on what the problem is here?

@zapaz
Copy link
Author

zapaz commented Oct 25, 2023

@zapaz I just did a fresh clone of the repo and running forge install to download the dependencies worked fine. Can you expand on what the problem is here?

yes forge install works but install old version (january 2023) of forge-std (v1.3.0) and open-zeppelin (v4.8.1)
but forge updatefails, needed to install latest version of forge-std (v1.7.1) and open-zeppelin (v4.8.3)

just have to fix non existing branches in .gitmodules

here is the error (in english)

$ forge update
fatal: Unable to find refs/remotes/origin/v1.3.0 revision in submodule path 'lib/forge-std'
Error:
git submodule exited with code 128

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants