The arcane tomes of Git say `git submodule update`...
# openlane
d
The arcane tomes of Git say
git submodule update
is probably the command to use here.
h
This would be needed to be issued where?
d
The root OpenROAD directory.
h
To summarize: we put the above statement into our OpenROAD build script. Correct?
d
Uh, are you cloning from scratch or are you `git pull`ing?
If you're cloning from scratch you shouldn't need to have to do this
h
Clone from scratch, as we build our Docker image.
Yes, that's what worries me.
d
That's interesting. Um.
git submodule update --init
then.
But I'm assuming you already have
--recursive
in your clone so this should be redundant
h
I'll check.
d
You could send me the Dockerfile, I'd be happy to take a look
h
The recursive is in, here‘s the Best regards build script: https://github.com/hpretl/iic-osic-tools/blob/main/images/openroad/scripts/install.sh
d
Ah, okay. Your problem here is the
git checkout ${OPENROAD_REPO_COMMIT}
. By doing that, you take the OpenROAD repo out of sync with the submodule.
So after that line you want to run
git submodule update
.
h
Oh, didn't know that. Good to know, we need to check all our scripts then which use submodules. Thanks a lot!!!
d
Cheers
👏 1
🙌 1