Facepunch / sbox-issues

177 stars 12 forks source link

Default .gitignore not properly excluding .sbox #6934

Closed jusvit closed 1 week ago

jusvit commented 1 week ago

The current .gitignore configuration is not correctly ignoring the .sbox directory and its contents, specifically project.json.

If this is intentional, then my other issue is the "Timeout" values inside the project.json updating every save of the project (continuously committed to git).

Other files in the .sbox directory may also be incorrectly tracked

Expected Behavior

The entire .sbox directory and all its contents should be ignored by Git

Offending .gitignore Entry

.sbox/*

Proposed Fix

Replace the current entry with: .sbox/

The current wildcard pattern .sbox/* only matches contents inside the directory but not the directory itself. Adding a trailing slash .sbox/ will properly ignore the directory and all its contents.

jusvit commented 1 week ago

Hmm this is probably intentional since cloud.db stores versioned packages