hello, I just purchased a brand new Pixel 7
Followed step by step directions using CLI installer (I'd prefer to use this officially supported method)

In the end, it didn't lock. So I looked at the my install log and everything said OK, but in the end I'm getting this:

extracting android-info.txt (0 MB) to RAM...
Checking 'product' OKAY [ 0.000s]
Checking 'version-bootloader' OKAY [ 0.000s]
Checking 'version-baseband' OKAY [ 0.000s]
Setting current slot to 'b' OKAY [ 0.060s]
fastboot: error: ANDROID_PRODUCT_OUT not set
Rebooting into bootloader OKAY [ 0.000s]

Could that above error be a cause of issue. If so, how do I address / fix it?

Also I tried booting the phone, but it goes into a loop
I've also tried reinstalling it again by connecting to all USB ports, same issue.

Please help

Figured out the Fix
for anyone else using Linux and wants to do CLI and you see this error
Do the following in your terminal

export ANDROID_PRODUCT_OUT="/(location of the folder in which you have platform tools installed)"

That's all :)

This issue was caused by Google replacing the working platform-tools 34.0.1 release with a broken one. We've downgraded the guide to 33.0.3 for the time being.