python: bug fix when version = none (#14)
* python: bug fix * add missing "none" proposal * nit
This commit is contained in:
parent
5cf250cf2f
commit
a7dc1749de
16 changed files with 16 additions and 14 deletions
|
@ -4,7 +4,7 @@
|
|||
"options": {
|
||||
"version": {
|
||||
"type": "string",
|
||||
"proposals": ["latest", "20.10"],
|
||||
"proposals": ["latest", "none", "20.10"],
|
||||
"default": "latest",
|
||||
"description": "Select or enter a Docker/Moby CLI version. (Availability can vary by OS version.)"
|
||||
},
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"options": {
|
||||
"version": {
|
||||
"type": "string",
|
||||
"proposals": ["latest", "20.10" ],
|
||||
"proposals": ["latest", "none", "20.10" ],
|
||||
"default": "latest",
|
||||
"description": "Select or enter a Docker/Moby Engine version. (Availability can vary by OS version.)"
|
||||
},
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"options": {
|
||||
"version": {
|
||||
"type": "string",
|
||||
"enum": ["latest"],
|
||||
"enum": ["latest", "none"],
|
||||
"default": "latest",
|
||||
"description": "Currently unused."
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"options": {
|
||||
"version": {
|
||||
"type": "string",
|
||||
"proposals": ["latest"],
|
||||
"proposals": ["latest", "none"],
|
||||
"default": "latest",
|
||||
"description": "Select version of the GitHub CLI, if not latest."
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"options": {
|
||||
"version": {
|
||||
"type": "string",
|
||||
"proposals": ["latest", "1.18", "1.17"],
|
||||
"proposals": ["latest", "none", "1.18", "1.17"],
|
||||
"default": "latest",
|
||||
"description": "Select or enter a Go version to install"
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
"options": {
|
||||
"version": {
|
||||
"type": "string",
|
||||
"proposals": ["latest", "7", "6", "5"],
|
||||
"proposals": ["latest", "none", "7", "6", "5"],
|
||||
"default": "latest",
|
||||
"description": "Select or enter a Gradle version to install"
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"options": {
|
||||
"version": {
|
||||
"type": "string",
|
||||
"proposals": ["lts", "latest", "17", "11", "8"],
|
||||
"proposals": ["lts", "latest", "none", "17", "11", "8"],
|
||||
"default": "lts",
|
||||
"description": "Select or enter a Java version to install"
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"options": {
|
||||
"version": {
|
||||
"type": "string",
|
||||
"proposals": ["latest", "1.23", "1.22", "1.21"],
|
||||
"proposals": ["latest", "none", "1.23", "1.22", "1.21"],
|
||||
"default": "latest",
|
||||
"description": "Select or enter a Kubernetes version to install"
|
||||
},
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
"options": {
|
||||
"version": {
|
||||
"type": "string",
|
||||
"proposals": ["latest", "3.8", "3.6", "3.5"],
|
||||
"proposals": ["latest", "none", "3.8", "3.6", "3.5"],
|
||||
"default": "latest",
|
||||
"description": "Select or enter a Maven version to install"
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"options": {
|
||||
"version": {
|
||||
"type": "string",
|
||||
"proposals": [ "lts", "latest", "18", "16", "14" ],
|
||||
"proposals": [ "lts", "latest", "none", "18", "16", "14" ],
|
||||
"default": "lts",
|
||||
"description": "Select or enter a Node.js version to install"
|
||||
},
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"options": {
|
||||
"version": {
|
||||
"type": "string",
|
||||
"proposals": ["latest", "7.1"],
|
||||
"proposals": ["latest", "none", "7.1"],
|
||||
"default": "latest",
|
||||
"description": "Select or enter a version of PowerShell."
|
||||
}
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
"enum": [
|
||||
"latest",
|
||||
"os-provided",
|
||||
"none",
|
||||
"3.10",
|
||||
"3.9",
|
||||
"3.8",
|
||||
|
|
|
@ -322,7 +322,7 @@ chown :pipx ${PIPX_HOME} ${PIPX_BIN_DIR}
|
|||
chmod g+s ${PIPX_HOME} ${PIPX_BIN_DIR}
|
||||
|
||||
# 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..."
|
||||
${PYTHON_INSTALL_PATH}/bin/python3 -m pip install --no-cache-dir --upgrade pip
|
||||
fi
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"options": {
|
||||
"version": {
|
||||
"type": "string",
|
||||
"proposals": ["latest", "3.1", "3.0", "2.7"],
|
||||
"proposals": ["latest", "none", "3.1", "3.0", "2.7"],
|
||||
"default": "latest",
|
||||
"description": "Select or enter a Ruby version to install"
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"options": {
|
||||
"version": {
|
||||
"type": "string",
|
||||
"proposals": ["latest", "1.55", "1.54", "1.53"],
|
||||
"proposals": ["latest", "none", "1.55", "1.54", "1.53"],
|
||||
"default": "latest",
|
||||
"description": "Select or enter a version of Rust to install."
|
||||
},
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
"type": "string",
|
||||
"proposals": [
|
||||
"latest",
|
||||
"none",
|
||||
"1.1",
|
||||
"1.0",
|
||||
"0.15"
|
||||
|
|
Loading…
Reference in a new issue