Unverified Commit a7dc1749 authored by Samruddhi Khandale's avatar Samruddhi Khandale Committed by GitHub

python: bug fix when version = none (#14)

* python: bug fix

* add missing "none" proposal

* nit
parent 5cf250cf
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"options": { "options": {
"version": { "version": {
"type": "string", "type": "string",
"proposals": ["latest", "20.10"], "proposals": ["latest", "none", "20.10"],
"default": "latest", "default": "latest",
"description": "Select or enter a Docker/Moby CLI version. (Availability can vary by OS version.)" "description": "Select or enter a Docker/Moby CLI version. (Availability can vary by OS version.)"
}, },
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"options": { "options": {
"version": { "version": {
"type": "string", "type": "string",
"proposals": ["latest", "20.10" ], "proposals": ["latest", "none", "20.10" ],
"default": "latest", "default": "latest",
"description": "Select or enter a Docker/Moby Engine version. (Availability can vary by OS version.)" "description": "Select or enter a Docker/Moby Engine version. (Availability can vary by OS version.)"
}, },
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"options": { "options": {
"version": { "version": {
"type": "string", "type": "string",
"enum": ["latest"], "enum": ["latest", "none"],
"default": "latest", "default": "latest",
"description": "Currently unused." "description": "Currently unused."
} }
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"options": { "options": {
"version": { "version": {
"type": "string", "type": "string",
"proposals": ["latest"], "proposals": ["latest", "none"],
"default": "latest", "default": "latest",
"description": "Select version of the GitHub CLI, if not latest." "description": "Select version of the GitHub CLI, if not latest."
} }
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"options": { "options": {
"version": { "version": {
"type": "string", "type": "string",
"proposals": ["latest", "1.18", "1.17"], "proposals": ["latest", "none", "1.18", "1.17"],
"default": "latest", "default": "latest",
"description": "Select or enter a Go version to install" "description": "Select or enter a Go version to install"
} }
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
"options": { "options": {
"version": { "version": {
"type": "string", "type": "string",
"proposals": ["latest", "7", "6", "5"], "proposals": ["latest", "none", "7", "6", "5"],
"default": "latest", "default": "latest",
"description": "Select or enter a Gradle version to install" "description": "Select or enter a Gradle version to install"
} }
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"options": { "options": {
"version": { "version": {
"type": "string", "type": "string",
"proposals": ["lts", "latest", "17", "11", "8"], "proposals": ["lts", "latest", "none", "17", "11", "8"],
"default": "lts", "default": "lts",
"description": "Select or enter a Java version to install" "description": "Select or enter a Java version to install"
} }
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"options": { "options": {
"version": { "version": {
"type": "string", "type": "string",
"proposals": ["latest", "1.23", "1.22", "1.21"], "proposals": ["latest", "none", "1.23", "1.22", "1.21"],
"default": "latest", "default": "latest",
"description": "Select or enter a Kubernetes version to install" "description": "Select or enter a Kubernetes version to install"
}, },
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
"options": { "options": {
"version": { "version": {
"type": "string", "type": "string",
"proposals": ["latest", "3.8", "3.6", "3.5"], "proposals": ["latest", "none", "3.8", "3.6", "3.5"],
"default": "latest", "default": "latest",
"description": "Select or enter a Maven version to install" "description": "Select or enter a Maven version to install"
} }
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"options": { "options": {
"version": { "version": {
"type": "string", "type": "string",
"proposals": [ "lts", "latest", "18", "16", "14" ], "proposals": [ "lts", "latest", "none", "18", "16", "14" ],
"default": "lts", "default": "lts",
"description": "Select or enter a Node.js version to install" "description": "Select or enter a Node.js version to install"
}, },
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"options": { "options": {
"version": { "version": {
"type": "string", "type": "string",
"proposals": ["latest", "7.1"], "proposals": ["latest", "none", "7.1"],
"default": "latest", "default": "latest",
"description": "Select or enter a version of PowerShell." "description": "Select or enter a version of PowerShell."
} }
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
"enum": [ "enum": [
"latest", "latest",
"os-provided", "os-provided",
"none",
"3.10", "3.10",
"3.9", "3.9",
"3.8", "3.8",
......
...@@ -322,7 +322,7 @@ chown :pipx ${PIPX_HOME} ${PIPX_BIN_DIR} ...@@ -322,7 +322,7 @@ chown :pipx ${PIPX_HOME} ${PIPX_BIN_DIR}
chmod g+s ${PIPX_HOME} ${PIPX_BIN_DIR} chmod g+s ${PIPX_HOME} ${PIPX_BIN_DIR}
# Update pip if not using os provided python # Update pip if not using os provided python
if [ ${PYTHON_VERSION} != "os-provided" ] && [ ${PYTHON_VERSION} != "system" ]; then if [ ${PYTHON_VERSION} != "os-provided" ] && [ ${PYTHON_VERSION} != "system" ] && [ ${PYTHON_VERSION} != "none" ]; then
echo "Updating pip..." echo "Updating pip..."
${PYTHON_INSTALL_PATH}/bin/python3 -m pip install --no-cache-dir --upgrade pip ${PYTHON_INSTALL_PATH}/bin/python3 -m pip install --no-cache-dir --upgrade pip
fi fi
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"options": { "options": {
"version": { "version": {
"type": "string", "type": "string",
"proposals": ["latest", "3.1", "3.0", "2.7"], "proposals": ["latest", "none", "3.1", "3.0", "2.7"],
"default": "latest", "default": "latest",
"description": "Select or enter a Ruby version to install" "description": "Select or enter a Ruby version to install"
} }
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"options": { "options": {
"version": { "version": {
"type": "string", "type": "string",
"proposals": ["latest", "1.55", "1.54", "1.53"], "proposals": ["latest", "none", "1.55", "1.54", "1.53"],
"default": "latest", "default": "latest",
"description": "Select or enter a version of Rust to install." "description": "Select or enter a version of Rust to install."
}, },
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
"type": "string", "type": "string",
"proposals": [ "proposals": [
"latest", "latest",
"none",
"1.1", "1.1",
"1.0", "1.0",
"0.15" "0.15"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment