Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

venv activate scripts do not pass ShellCheck #85688

Open
donpellegrino mannequin opened this issue Aug 10, 2020 · 2 comments
Open

venv activate scripts do not pass ShellCheck #85688

donpellegrino mannequin opened this issue Aug 10, 2020 · 2 comments
Labels
3.10 only security fixes extension-modules C modules in the Modules dir type-feature A feature request or enhancement

Comments

@donpellegrino
Copy link
Mannequin

donpellegrino mannequin commented Aug 10, 2020

BPO 41516
Nosy @terryjreedy, @vsajip, @donpellegrino

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = None
created_at = <Date 2020-08-10.15:52:50.472>
labels = ['extension-modules', 'type-feature', '3.10']
title = 'venv activate scripts do not pass ShellCheck'
updated_at = <Date 2020-08-14.20:09:18.113>
user = 'https://github.com/donpellegrino'

bugs.python.org fields:

activity = <Date 2020-08-14.20:09:18.113>
actor = 'terry.reedy'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Extension Modules']
creation = <Date 2020-08-10.15:52:50.472>
creator = 'user93448'
dependencies = []
files = []
hgrepos = []
issue_num = 41516
keywords = []
message_count = 2.0
messages = ['375125', '375430']
nosy_count = 3.0
nosy_names = ['terry.reedy', 'vinay.sajip', 'user93448']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue41516'
versions = ['Python 3.10']

@donpellegrino
Copy link
Mannequin Author

donpellegrino mannequin commented Aug 10, 2020

The activate scripts created by the venv module do not pass checks by ShellCheck (https://www.shellcheck.net/). ShellCheck generally has a point for each warning and note generated against the venv activate scripts. Addressing the ShellCheck reports would align the activate script implementation with best practices.

@donpellegrino donpellegrino mannequin added extension-modules C modules in the Modules dir type-feature A feature request or enhancement labels Aug 10, 2020
@terryjreedy
Copy link
Member

(3.6 only gets security fixes.) Please be more specific: venv produces 6 types of scripts. Which type(s) are seen as buggy? Can you paste a script produced by venv and its ShellCheck output? (The web site has a paste-in box.) Have you used ShellCheck? Can you sign the contributor agreement submit a PR? (Yes, we do sometimes create, review, and upon agreement merge patches based of various code and text checkers.)

@terryjreedy terryjreedy added 3.10 only security fixes labels Aug 14, 2020
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.10 only security fixes extension-modules C modules in the Modules dir type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

1 participant