Skip to content

bl-game template: ignore Assets/Cooked in any project folder - #37

Merged
lithiumtoast merged 1 commit into
mainfrom
template-gitignore-cooked
Dec 1, 2026
Merged

lithiumtoast merged 1 commit into
mainfrom
template-gitignore-cooked

Conversation

@lithiumtoast

@lithiumtoast lithiumtoast commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

The template's .gitignore had Assets/Cooked/. A pattern with a slash in it is anchored to the .gitignore's folder, the repository's root, so it never matched a game's src/cs/MyGame/Assets/Cooked/. A game made from the template committed its cooked shaders because of this.

  • shared/.gitignore: **/Assets/Cooked/, which matches in any folder, with a comment on why **/ is needed.
  • test.sh: after the template's game cooks its asset, it runs git init and git check-ignore on the cooked file, so a pattern that doesn't match fails the test.
  • Assetyard's README: says to add **/Assets/Cooked/ and why. It said Assets/Cooked/, the same mistake.

Checked: test.sh passes locally on macOS with the new check. In a repository made from the template, git check-ignore doesn't match with the old pattern and does with the new one.

Repositories already made from the template need the same one-line change in their .gitignore.

The .gitignore pattern Assets/Cooked/ has a slash, so Git anchors it to the repository's root, and it never matched a project's src/cs/MyGame/Assets/Cooked/: Ageborn committed its cooked shaders. **/Assets/Cooked/ matches it anywhere. test.sh now checks that the generated repository ignores its cooked assets, and the Assetyard README says to use **/.
@lithiumtoast
lithiumtoast merged commit 9f4bd61 into main Dec 1, 2026
28 checks passed
@lithiumtoast
lithiumtoast deleted the template-gitignore-cooked branch December 1, 2026 03:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant