foundry-starter-kit
foundry-starter-kit copied to clipboard
Unable to find current origin/master revision in submodule path 'lib/chainlink-brownie-contracts'
Error:
fatal: Needed a single revision Unable to find current origin/master revision in submodule path 'lib/chainlink-brownie-contracts'
Reproduce:
git clone https://github.com/smartcontractkit/foundry-starter-kit cd foundry-start-kit make
Env: Windows 10 WSL2
Hi @SnowPrimate Are you by chance inside another git repo?
AKA a directory above foundry-start-kit
is also a git repository?
I've seen this happen when that's the case as foundry uses git to install dependencies.
@rgottleber
Thank you very much for your response. As far as I noticed, there are no signs of git repos on the directory right above.
Here is my entire directory above foundry-start-kit.
Still getting the same error.
i think the problem is when running make
. it seems to install a different version of chainlink-brownie-contracts
. Here are some workarounds that worked for me:
- install current release tag in here by running
forge install smartcontractkit/[email protected]
. (if you get a git error adding a--no-commit
flag worked for me as well) - clone the repo again and don't run
make
. just runmake tests
right away. this also install missing dependencies. i think the right lib files are already in the repo upon cloning.
hope this helps! :)
not sure if anyone from the team can help us on that. I'm also just following @PatrickAlphaC 's tutorials (which is so helpful so far ❤️)