Skip to content

Commit ea05df1

Browse files
committed
tools: don't gitignore base64 config.h
The file is checked into git. Ignoring it causes a very non-obvious way of breaking tarball builds: 1. Download and unpack tarball 2. Check the sources into git with `git init; git add .; git commit -a` 3. Clean the source tree with `git clean -dfx` 4. Run `./configure && make` 5. Observe build failure because config.h is missing Fixes: #47638
1 parent 5275843 commit ea05df1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/dep_updaters/update-base64.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ mv "$WORKSPACE/base64" "$DEPS_DIR/base64/"
5151
# to work, we create it and leave it empty.
5252
echo "// Intentionally empty" >> "$DEPS_DIR/base64/base64/lib/config.h"
5353

54+
# Clear out .gitignore, otherwise config.h is ignored. That's dangerous when
55+
# people check in our tarballs into source control and run `git clean`.
56+
echo "# Intentionally empty" >> "$DEPS_DIR/base64/base64/.gitignore"
57+
5458
echo "All done!"
5559
echo ""
5660
echo "Please git add base64/base64, commit the new version:"

0 commit comments

Comments
 (0)