You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the case of a failure when setting a new Zig version, it would be more user-friendly for ZVM to automatically fallback to the last successfully installed and set Zig version. This fallback mechanism would ensure that the user's environment remains in a usable state, allowing them to continue working with the last known good configuration until they decide to address the issue that caused the version set operation to fail.
Steps to Reproduce
Ensure ZVM is installed and a Zig version is currently set and being used.
Attempt to set a new Zig version using ZVM to one that is invalid or will cause the set operation to fail (e.g., due to a typo in the version name or a temporary network issue).
Observe that after the failure, the Zig version is unset, and commands relying on Zig will not work until the user manually intervenes.
Possible Solution
Implement a feature in ZVM where, upon a failed attempt to set a new Zig version, it automatically reverts to the most recently used version that was successfully installed and set. This could involve keeping a history of used versions and ensuring there's a quick way to revert to the previous state without user intervention.
The text was updated successfully, but these errors were encountered:
In the case of a failure when setting a new Zig version, it would be more user-friendly for ZVM to automatically fallback to the last successfully installed and set Zig version. This fallback mechanism would ensure that the user's environment remains in a usable state, allowing them to continue working with the last known good configuration until they decide to address the issue that caused the version set operation to fail.
Steps to Reproduce
Possible Solution
Implement a feature in ZVM where, upon a failed attempt to set a new Zig version, it automatically reverts to the most recently used version that was successfully installed and set. This could involve keeping a history of used versions and ensuring there's a quick way to revert to the previous state without user intervention.
The text was updated successfully, but these errors were encountered: