The issue is that the repository currently contains:
_add_engine_git_module(STBImage https://github.com/nothings/stb.git f1c79c0)
but that abbreviated Git reference no longer resolves, causing fresh builds to fail. Replacing it with a valid branch or, preferably, a full commit hash fixes the problem.
You could open a GitHub Issue with something like:
Title: STBImage dependency fails to fetch due to invalid Git reference
Body:
While building the project on a fresh clone, CMake fails when fetching the STBImage dependency:
fatal: invalid reference: f1c79c0
Failed to checkout tag: 'f1c79c0'
The repository currently uses:
_add_engine_git_module(STBImage https://github.com/nothings/stb.git f1c79c0)
That abbreviated commit no longer resolves. Updating GIT_TAG to a valid full commit hash (or another stable reference) fixes the issue.
One suggestion: although changing it to master got you building, using master is not the best long-term fix. The maintainer should ideally pin the dependency to a specific full 40-character commit hash or a release tag. That makes builds reproducible and avoids unexpected breakages if the upstream repository changes.
P.S Yes I'm using AI however as seen above the old STBImage no longer works and I found a newer version
The issue is that the repository currently contains:
_add_engine_git_module(STBImage https://github.com/nothings/stb.git f1c79c0)
but that abbreviated Git reference no longer resolves, causing fresh builds to fail. Replacing it with a valid branch or, preferably, a full commit hash fixes the problem.
You could open a GitHub Issue with something like:
Title: STBImage dependency fails to fetch due to invalid Git reference
Body:
While building the project on a fresh clone, CMake fails when fetching the STBImage dependency:
fatal: invalid reference: f1c79c0
Failed to checkout tag: 'f1c79c0'
The repository currently uses:
_add_engine_git_module(STBImage https://github.com/nothings/stb.git f1c79c0)
That abbreviated commit no longer resolves. Updating GIT_TAG to a valid full commit hash (or another stable reference) fixes the issue.
One suggestion: although changing it to master got you building, using master is not the best long-term fix. The maintainer should ideally pin the dependency to a specific full 40-character commit hash or a release tag. That makes builds reproducible and avoids unexpected breakages if the upstream repository changes.
P.S Yes I'm using AI however as seen above the old STBImage no longer works and I found a newer version