File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -249,8 +249,9 @@ func runProgramAction(pm *packagemanager.PackageManager,
249
249
}
250
250
importPath = importFilePath .Parent ()
251
251
// In general, the binary file extension (like .bin or .hex or even .zip) are already written explicitly in
252
- // the core recipes. This why the CLI removes it before setting the build.project_name property.
253
- importFileName := strings .ReplaceAll (importFilePath .Base (), importFilePath .Ext (), "" )
252
+ // the core recipes inside platform.txt. This why the CLI removes it before setting the build.project_name
253
+ // property.
254
+ importFileName := strings .TrimSuffix (importFilePath .Base (), importFilePath .Ext ())
254
255
uploadProperties .SetPath ("build.path" , importPath )
255
256
uploadProperties .Set ("build.project_name" , importFileName )
256
257
} else {
You can’t perform that action at this time.
0 commit comments