You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Building a new site package ends with the git error:
fatal: Not a valid object name HEAD
Steps to reproduce
Build a new site template using the script:
export starter_name=b1 && \
export dest='/path/to/'${starter_name} && \
cd /repo/Bodiless-JS/ && \
git clean -fxd && npm i && \
/Users/user_name/someFolder/someFolder/Bodiless-JS/packages/bodiless-cli/bin/bodiless new -r HEAD --clone-local --dest ${dest} --name ${starter_name} --site-template '__vital_next__' && \
cd '/path/to/'${starter_name} && \
git status
note: replace path and options as needed , for ex.:
export starter_name=b1 && \
export dest='/Users/Katerina_Pashkevich/Documents/WorkingFolder/new-site/'${starter_name} && \
cd Bodiless/Bodiless-JS
git clean -fxd && npm i && \
/Users/Katerina_Pashkevich/Documents/WorkingFolder/Bodiless/Bodiless-JS/packages/bodiless-cli/bin/bodiless new -r HEAD --clone-local --dest ${dest} --name ${starter_name} --site-template '__vital_next__' && \
cd ../../new-site/${starter_name} && \
git status
Expected result
Site building process completed successfully, no errors observed
Actual result
Error occurs
Building package...
> b1-monorepo@0.0.0 build:packages
> npx -y turbo build --filter=./packages/*
ERROR run failed: error hashing package files: git error: 'git ls-tree' in /Users/Katerina_Pashkevich/Documents/WorkingFolder/new-site/b1/packages/b1 exited with code 128 stderr: fatal: Not a valid object name HEAD
Turbo error: error hashing package files: git error: 'git ls-tree' in /Users/Katerina_Pashkevich/Documents/WorkingFolder/new-site/b1/packages/b1 exited with code 128 stderr: fatal: Not a valid object name HEAD
npm ERR! code 1
npm ERR! path /Users/Katerina_Pashkevich/Documents/WorkingFolder/new-site/b1
npm ERR! command failed
npm ERR! command sh -c ./postinstall.sh
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/Katerina_Pashkevich/.npm/_logs/2023-07-06T18_10_38_788Z-debug-0.log
Error: Exit code 1 in npm
Environment
OS: MacOS Ventura 13.3.1 (a)
node v18.16.1
Note: reproducible only on specific system configurations
Description
Building a new site package ends with the git error:
fatal: Not a valid object name HEAD
Steps to reproduce
Build a new site template using the script:
note: replace path and options as needed , for ex.:
Expected result
Site building process completed successfully, no errors observed
Actual result
Error occurs
Environment
OS: MacOS Ventura 13.3.1 (a)
node v18.16.1
Note: reproducible only on specific system configurations
Affected Version
branch on which the issue occurs.
The text was updated successfully, but these errors were encountered: