Skip to content

Commit 525a63d

Browse files
committed
make the rel/ directory have at least one file
1 parent 41efd88 commit 525a63d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

build-go-project.sh

+8
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,14 @@ binaries() {
166166
removePreviousBuildArtefacts() {
167167
rm -rf rel
168168
mkdir rel
169+
170+
# suppose we compile two executables into this directory. for consistency we don't want for
171+
# the first executable's compilation the workdir to be clean (Git doesn't track directories
172+
# so this dir itself is not counted) and for the second not.
173+
#
174+
# if you want the workdir to be considered clean despite the rel/ directory here then .gitignore
175+
# could be the more robust solution. more context: https://github.com/function61/turbobob/issues/65
176+
touch rel/.dummy_file_to_make_dir_not_empty
169177
}
170178

171179
standardBuildProcess() {

0 commit comments

Comments
 (0)