platypus: fix --HEAD builds

Closes #27085.