Skip to content

馃殌 Release Notes: mkpyenv v2.0.0

Latest

Choose a tag to compare

@ianktoo ianktoo released this 25 Nov 01:44
· 4 commits to main since this release
99bd805

馃殌 Release Notes: mkpyenv v2.0.0

Summary

This is a critical security and stability patch release. Version v2.0.0 fixes a critical bug where the standard --help flag failed to execute, instead incorrectly attempting to create a project directory named --help. This release also introduces mandatory self-update enforcement and improves scripting reliability with enhanced error handling.


馃敀 Key Features and Fixes

Feature Type Description
Critical Bug Fix Fix Corrected the input validation logic to properly recognize and execute the standard --help (-h) usage flag, resolving the script's failure to display help information.
Mandatory Update Security Implemented a version enforcement check (v1.0.0 will auto-abort). Users running deprecated versions are now required to update, guaranteeing that all users are running the latest, fixed code.
Robust Error Handling Security Added the set -o pipefail directive to ensure that the script exits immediately if any command in a pipeline (e.g., `cd
Safer Placeholder Replacement Enhancement Updated the sed command to use the -i.bak flag, creating a temporary backup file (.bak) during placeholder replacement before deleting it, offering a small buffer against unexpected write errors.
Clean Exit on Help Refactor The --help flag now executes a clean exit status of 0, aligning with Unix conventions for successful information retrieval.

鈿狅笍 Action Required: Upgrade Instructions

If you are running any version older than v2.0.0, your script will now fail and print mandatory upgrade instructions.

To ensure you are using the latest, stable version, please run the following command. This command will download and overwrite your local mkpyenv file with the fixed script.

# This command finds the script's location and replaces it with the new v2.0.0 file.
curl -sL https://raw.githubusercontent.com/ianktoo/mkpyenv-cli/main/mkpyenv -o "$(which mkpyenv)" && chmod +x "$(which mkpyenv)"