foundry-starter-kit icon indicating copy to clipboard operation
foundry-starter-kit copied to clipboard

Unable to find current origin/master revision in submodule path 'lib/chainlink-brownie-contracts'

Open 0xPrimata opened this issue 1 year ago • 3 comments

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

0xPrimata avatar Oct 25 '22 03:10 0xPrimata

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 avatar Oct 25 '22 13:10 rgottleber

@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. image Here is my entire directory above foundry-start-kit. Still getting the same error.

0xPrimata avatar Oct 25 '22 18:10 0xPrimata

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 runmake. just run make 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 ❤️)

0xAplki avatar Feb 12 '23 07:02 0xAplki