Hi team,
In platform.json we specify packages with version only.
what if I have a tool with two different versions for windows and linux system how do I specify in platform.json so that correct version loads based on system type
e.g. for windows my tool say tool-abc has version 3.2.0
and for linux or mac os tool version is 1.2.0
how do I specify this based on system type in platform.json file?
currently only one version can be specified.
alternatively, is there a way to check current system type in builder script, then maybe I can use different tool name for windows and linux/macos
Thanks @ivankravets
Just to get some more clarity:
you’re suggesting not to mention tool name/version in platform.json, instead while loading the platform, I can check system type and load the tool accordingly. hope I am getting it correctly?
e.g. (pseudo code)
But package manager always try to install tool-siwiflasher, and fails.
PackageManager: Installing tool-siwiflasher @ ~1.3.0
Error: Could not find a version that satisfies the requirement '~1.3.0' for your system 'linux_x86_64'
It does not even try the other tool. why is that?
Looking at the issue here, I think it is best if platform.json also has system field for packages. So that right package gets installed for build system type.