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

Fix again pre-commit dected issues and turn test on for all files #482

Merged

Conversation

sandrobonazzola
Copy link
Collaborator

Fix missing double quoting in tools/qm-storage-settings

Fixes missing double quotes introduced in #479.
Not detected by pre-commit action as it's not configured to run on all files.

In tools/qm-storage-settings fix for:
     for STORAGE_CONF_PATH in ${STORAGE_CONF_PATHS[@]}; do
                                 ^----------------------^ SC2068 (error): Double quote array expansions to avoid re-splitting elements.

In tools/qm-storage-settings line 52:
        if [ -f ${STORAGE_CONF_PATH} ]; then
                ^------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Then, enabling pre-commit on all files preventing this to happen again.

Fixes missing double quotes introduced in containers#479.
Not detected by pre-commit action as it's not configured
to run on all files.

In tools/qm-storage-settings fix for:
    for STORAGE_CONF_PATH in ${STORAGE_CONF_PATHS[@]}; do
                             ^----------------------^ SC2068 (error): Double quote array expansions to avoid re-splitting elements.

In tools/qm-storage-settings line 52:
        if [ -f ${STORAGE_CONF_PATH} ]; then
                ^------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Signed-off-by: Sandro Bonazzola <sbonazzo@redhat.com>
- always run pre-commit on all files
- updated actions solving:

```
The following actions uses Node.js version which is deprecated
and will be forced to run on node20: actions/setup-python@v4, actions/checkout@v3.
For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
```

Signed-off-by: Sandro Bonazzola <sbonazzo@redhat.com>
@sandrobonazzola sandrobonazzola merged commit edbd6ea into containers:main Jul 4, 2024
7 checks passed
@sandrobonazzola sandrobonazzola deleted the gh_action_precommit branch July 4, 2024 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants