makes icon indicating copy to clipboard operation
makes copied to clipboard

Validate version mismatch

Open dacevedo12 opened this issue 2 years ago • 2 comments

image

When the user has an old version of makes and attempts to run a command from a newer one

The proposal is to handle this case, showing a clear error on why it happened and how to update makes

dacevedo12 avatar Apr 26 '23 14:04 dacevedo12

I think the best way to do this would be by checking if both the CLI and the framework of Makes are pointing to a commit within the same version.

if not same_version(makes_cli, makes_framework):
   warn(
      f"You are currently using Makes CLI v{makes_cli.version}, "
      f"but have Makes framework v{makes_framework.version} pinned on your makes.lock.nix file. "
      f"This may cause incompatibility issues."
   )

dsalaza4 avatar Apr 26 '23 16:04 dsalaza4

We can also forward here: https://makes.fluidattacks.com/versioning/?h=#compatibility-information

dsalaza4 avatar Apr 26 '23 16:04 dsalaza4