TBD54566975 / ftl

FTL - Towards a 𝝺-calculus for large-scale systems
https://tbd54566975.github.io/ftl/
Apache License 2.0
21 stars 7 forks source link

Target Correct CPU architecture with ftl deploy #1845

Open alec-brooks opened 3 months ago

alec-brooks commented 3 months ago

The behaviour of ftl deploy is currently to build FTL modules with the CPU architecture of the system that the FTL cli is running on. This is problematic when building on a device that has a different CPU architecture than the environment where the FTL cluster is running.

Being able to specify the CPU architecture to build for as an argument in ftl deploy and ftl build would likely remediate this.

Though it would be very cool if it was possible for the FTL CLI to ask the running FTL cluster what CPU architecture it has before building so that users don't need to remember to pass in the flag.

alecthomas commented 3 months ago

Unfortunately for the general case across languages this would be very difficult, or impossible, to achieve.

alecthomas commented 3 months ago

OTOH we should definitely reject deploys from a different architecture.

alec-brooks commented 3 months ago

Yeah, I see what you mean, it would be very hard to do generically. I think just blocking deploys from other architectures would be a big improvement as right now it is easy to break things accidentally.