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
Thanks for explaining the .gitignore in Tupdefault trick to me; it actually works, but apparently I missed also adding it to my root Tupfile the first time I was testing it. 😅 🎉
Either way, I managed to randomly stumble on an issue while doing that; Tup seemingly forgets to update the folder containing the .gitignore when a subfolder changes type from normal to generated or vice versa.
Example testcase:
#! /bin/sh -e. ./tup.sh
cat > Tupfile <<HERE.gitignore: |> touch %o |> out/generated.txtHERE
cat > Tupdefault <<HERE.gitignoreHERE
update # state 1 -- out/ is a generated directory
gitignore_good out .gitignore
check_not_exist out/.gitignore
touch out/non-generated.txt
update # state 2 -- out/ is a normal directory
gitignore_bad out .gitignore ## <---- fails here!
gitignore_good generated.txt out/.gitignore
touch Tupfile ## or, touch random.txt
update
gitignore_bad out .gitignore ## but now it works!
rm out/non-generated.txt
update # back to state 1, however...
gitignore_good out .gitignore ## <<--- fails here!
check_not_exist out/.gitignore ## <<--- and this file hangs around forever until manually deleted
touch Tupfile ## or, touch random.txt
update
gitignore_good out .gitignore ## but now it works!
eotup
The text was updated successfully, but these errors were encountered:
Thanks for explaining the .gitignore in Tupdefault trick to me; it actually works, but apparently I missed also adding it to my root Tupfile the first time I was testing it. 😅 🎉
Either way, I managed to randomly stumble on an issue while doing that; Tup seemingly forgets to update the folder containing the .gitignore when a subfolder changes type from normal to generated or vice versa.
Example testcase:
The text was updated successfully, but these errors were encountered: