Commit 4cf0673 1 parent 09149ba commit 4cf0673 Copy full SHA for 4cf0673
File tree 2 files changed +16
-15
lines changed
2 files changed +16
-15
lines changed Original file line number Diff line number Diff line change 19
19
'windows-x64' : 'https://go.dev/dl/go1.21.5.windows-amd64.zip' ,
20
20
'windows-x86' : 'https://go.dev/dl/go1.21.5.windows-386.zip' ,
21
21
'macos-x64' : 'https://go.dev/dl/go1.21.5.darwin-amd64.tar.gz' ,
22
+ 'macos-armv8' : 'https://go.dev/dl/go1.21.5.darwin-arm64.tar.gz' ,
22
23
}
23
24
24
25
Original file line number Diff line number Diff line change @@ -56,20 +56,20 @@ def install(self, env):
56
56
'lib/**/jvm.dll' , '**/lib/**/jvm.dll' ],
57
57
]
58
58
found = 0
59
- #
60
- # for paths in required_files:
61
- # path_found = False
62
- # for path in paths:
63
- # for prefix in prefixes:
64
- # if not prefix:
65
- # continue
66
- # full_path = os.path.join(prefix, path)
67
- # if glob.glob(full_path, recursive=True):
68
- # found += 1
69
- # path_found = True
70
- # break
71
- # if path_found:
72
- # break
59
+
60
+ for paths in required_files :
61
+ path_found = False
62
+ for path in paths :
63
+ for prefix in prefixes :
64
+ if not prefix :
65
+ continue
66
+ full_path = os .path .join (prefix , path )
67
+ if glob .glob (full_path , recursive = True ):
68
+ found += 1
69
+ path_found = True
70
+ break
71
+ if path_found :
72
+ break
73
73
74
74
if found >= len (required_files ):
75
75
print ('Found existing JDK8 at {}' .format (prefix ))
@@ -95,7 +95,7 @@ def install(self, env):
95
95
print ('Downloading {}' .format (url ))
96
96
fetch_and_extract (url , filename , install_dir )
97
97
os .remove (filename )
98
- print ( glob . glob ( os . path . join ( install_dir , 'jdk*' )))
98
+
99
99
jdk_home = glob .glob (os .path .join (install_dir , '*jdk*' ))[0 ]
100
100
assert jdk_home
101
101
You can’t perform that action at this time.
0 commit comments