I have a submodule error that looks similar to the popular Hugo theme submodule issue. My problem involves CORS. I tried removing the submodule and then re-installing, but I’m still experiencing issues. URL and full build log is below.
https://digitaltoast-api.netlify.app/
10:35:39 PM: Build ready to start
10:35:42 PM: build-image version: 195fbe127e5c374d9c4758652cb62e3b8936a395 (focal)
10:35:42 PM: build-image tag: v4.6.0
10:35:42 PM: buildbot version: 43c70c62bfed821cfaaabbb50f00238dd4bdd2d6
10:35:42 PM: Fetching cached dependencies
10:35:42 PM: Failed to fetch cache, continuing with build
10:35:42 PM: Starting to prepare the repo for build
10:35:42 PM: No cached dependencies found. Cloning fresh repo
10:35:42 PM: git clone https://github.com/dyudis314/jobboard-api
10:35:43 PM: Preparing Git Reference refs/heads/main
10:35:44 PM: Error checking out submodules: Submodule 'cors-anywhere' (https://github.com/dyudis314/jobboard-api.git) registered for path 'cors-anywhere'
Cloning into '/opt/build/repo/cors-anywhere'...
fatal: remote error: upload-pack: not our ref 70aaa22b3f9ad30c8566024bf25484fd1ed9bda9
fatal: Fetched in submodule path 'cors-anywhere', but it did not contain 70aaa22b3f9ad30c8566024bf25484fd1ed9bda9. Direct fetching of that commit failed.
fatal:
10:35:44 PM: Creating deploy upload records
10:35:44 PM: Failing build: Failed to prepare repo
10:35:45 PM: Failed during stage 'preparing repo': Error checking out submodules: Submodule 'cors-anywhere' (https://github.com/dyudis314/jobboard-api.git) registered for path 'cors-anywhere'
Cloning into '/opt/build/repo/cors-anywhere'...
fatal: remote error: upload-pack: not our ref 70aaa22b3f9ad30c8566024bf25484fd1ed9bda9
fatal: Fetched in submodule path 'cors-anywhere', but it did not contain 70aaa22b3f9ad30c8566024bf25484fd1ed9bda9. Direct fetching of that commit failed.
fatal:
: exit status 128
10:35:45 PM: Finished processing build request in 3.052860121s