Skip to content

Commit fbdeeeb

Browse files
committed
Fix an issue for make dist: once the internal/resources directory contains no files, //go:embed will be invalid
1 parent 719f4d2 commit fbdeeeb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ else # no prebuilt tools found
3333
@echo "No prebuilt tools found in /prebuilt/tools or tools/bin"
3434
endif
3535
endif
36+
ifeq ("$(ls -A internal/script/resources/x86_64)","") # //go:embeded can not support empty directory
37+
touch internal/script/resources/x86_64/nofiles
38+
endif
3639

3740

3841
# Build the distribution package

0 commit comments

Comments
 (0)