Skip to content

Commit d8dcf44

Browse files
committed
fix: skip executable check on windows
1 parent b2b8227 commit d8dcf44

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

go/porcelain/deploy.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import (
1515
"io/ioutil"
1616
"os"
1717
"path/filepath"
18+
"runtime"
1819
"strconv"
1920
"strings"
2021
"sync"
@@ -919,7 +920,7 @@ func jsFile(i os.FileInfo) bool {
919920
func goFile(filePath string, i os.FileInfo, observer DeployObserver) bool {
920921
warner, hasWarner := observer.(DeployWarner)
921922

922-
if m := i.Mode(); m&0111 == 0 { // check if it's an executable file
923+
if m := i.Mode(); m&0111 == 0 && runtime.GOOS != "windows" { // check if it's an executable file. skip on windows, since it doesn't have that mode
923924
if hasWarner {
924925
warner.OnWalkWarning(filePath, "Go binary does not have executable permissions")
925926
}

0 commit comments

Comments
 (0)