We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2b8227 commit d8dcf44Copy full SHA for d8dcf44
go/porcelain/deploy.go
@@ -15,6 +15,7 @@ import (
15
"io/ioutil"
16
"os"
17
"path/filepath"
18
+ "runtime"
19
"strconv"
20
"strings"
21
"sync"
@@ -919,7 +920,7 @@ func jsFile(i os.FileInfo) bool {
919
920
func goFile(filePath string, i os.FileInfo, observer DeployObserver) bool {
921
warner, hasWarner := observer.(DeployWarner)
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
924
if hasWarner {
925
warner.OnWalkWarning(filePath, "Go binary does not have executable permissions")
926
}
0 commit comments