Open alec-brooks opened 3 months ago
Unfortunately for the general case across languages this would be very difficult, or impossible, to achieve.
OTOH we should definitely reject deploys from a different architecture.
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.
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
andftl 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.