@@ -50,7 +50,7 @@ func main() {
5050
5151 // Create a temporary folder, download a URL based on a git tag in it
5252 // and extract the zip file to the temporary folder
53- tmpDir , err := os .MkdirTemp ("" , "sync_zephyr_artifacts " )
53+ tmpDir , err := os .MkdirTemp ("" , "sync-zephyr-artifacts " )
5454 if err != nil {
5555 fmt .Println ("Error creating temp dir:" , err )
5656 return
@@ -106,7 +106,7 @@ func main() {
106106 if forceHash != "" {
107107 hash = forceHash
108108 }
109- filename := fmt .Sprintf ("arduino-core- zephyr-llext -%s.tar.bz2" , hash )
109+ filename := fmt .Sprintf ("ArduinoCore- zephyr-%s.tar.bz2" , hash )
110110 url := fmt .Sprintf ("http://downloads.arduino.cc/cores/zephyr/%s" , filename )
111111 fmt .Println ("Download URL:" , url )
112112 // Download the zip file from the URL
@@ -134,8 +134,6 @@ func main() {
134134 }
135135 // Copy the content of variants folder to gitCorePath/variants
136136 // Since CopyFS does not overwrite, before doing so remove gitCorePath/variants
137- // TODO: make sure there's no outstanding change in gitCorePath/variants
138- // Bail out in that case with a clear error message
139137 err = os .RemoveAll (filepath .Join (gitCorePath , "variants" ))
140138 if err != nil {
141139 fmt .Println ("Error renaming variants folder:" , err )
0 commit comments