| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| "dependencies": { | ||
| "@actions/cache": "^2.0.2", | ||
| "@actions/core": "^1.2.3", | ||
| "@actions/core": "^1.7.0", |
There was a problem hiding this comment.
This required to be bumped to >= 1.3.0 to get getBooleanInput support. I bumped to the same version as what's being proposed in #406
Sorry, something went wrong.
|
e2e-cache / Test poetry (Python pypy-3.7-v7.x, windows-latest) failure has nothing to do with this PR. |
Sorry, something went wrong.
There was a problem hiding this comment.
I'd like to explore other solutions besides adding complexity to the action.
Can you just add steps to the composite action? For example:
# Save the environment
set > env.sh
# Restore the environment
source env.sh
Sorry, something went wrong.
|
@brcrista, For exportVariable: For addPath, it's values are always prepended to the "current" PATH, c.f. actions/toolkit#655 |
Sorry, something went wrong.
|
Hi @mayeut, I have some concerns about this feature. In order to use python that is installed by action without $PATH updating you should use exact paths to the installed python in a composite action. If there are any other tools in composite action which use python implicitly, then these tools will not use the version you expect. This can lead to confusion about which python version is used in some command or tool. From my point of view an installation of python without adding to PATH may create more complications than solve problems. |
Sorry, something went wrong.
This is an opt-in feature. It won't change a thing for existing users. If they choose to opt-in, they shall know the implications. As said in an earlier comment, it's just impossible to restore the environment as it was before running setup-python. Even if it were, I feel that it would be better solved by adding a bit of complexity in this action, centralized, rather than incurring workarounds for downstream users. |
Sorry, something went wrong.
|
@mayeut, ok, I see. Since the AzDev UsePython task has a similar input addToPath I think it makes sense to add this feature to the action. |
Sorry, something went wrong.
There was a problem hiding this comment.
I'll defer to @vsafonkin on this
Sorry, something went wrong.
| no-environment-update: | ||
| description: 'Set this option if you want the action not to update environment variables.' | ||
| default: false |
There was a problem hiding this comment.
| no-environment-update: | |
| description: 'Set this option if you want the action not to update environment variables.' | |
| default: false | |
| update-environment: | |
| description: 'Set this option if you want the action to update environment variables.' | |
| default: true |
Putting boolean inputs in positive terms is usually easier for people to understand.
Sorry, something went wrong.
There was a problem hiding this comment.
done
Sorry, something went wrong.
This option allows to specify if the action shall update environment variables (default) or not. This allows to use the setup-python action in a composite action without side effect (except downloading/installing python if version is missing).
disallow actions/setup-python from changing environment variables; see: actions/runner#781 actions/setup-python#411
This option allows to specify if the action shall update environment variables (default) or not. This allows to use the setup-python action in a composite action without side effect (except downloading/installing python if version is missing).
| Back | FazBrowse Home | New Git URL |
Description:
This option allows to specify if the action shall update environment variables (default) or not.
This allows to use the setup-python action in a composite action without side effect (except downloading/installing python if version is missing).
Related issue:
fix #410
Check list: