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 debian install shellcheck #15

Merged
merged 1 commit into from
Nov 13, 2023
Merged

Fix debian install shellcheck #15

merged 1 commit into from
Nov 13, 2023

Conversation

bhundven
Copy link
Contributor

💌 Description

This change fixes a bug with the act tool.

[CI/test]   💬  ::debug::shellcheck exists: false
| [command]/usr/bin/sudo apt-get install shellcheck
| sudo: unable to send audit message: Operation not permitted
| Reading package lists...
| Building dependency tree...
| Reading state information...
| E: Unable to locate package shellcheck
| Error: The process '/usr/bin/sudo' failed with exit code 100
|     at ExecState._setResult (/run/act/actions/actions-github-script@v6/dist/index.js:1702:25)
|     at ExecState.CheckComplete (/run/act/actions/actions-github-script@v6/dist/index.js:1685:18)
|     at ChildProcess.<anonymous> (/run/act/actions/actions-github-script@v6/dist/index.js:1579:27)
|     at ChildProcess.emit (node:events:517:28)
|     at maybeClose (node:internal/child_process:1098:16)
|     at ChildProcess._handle.onexit (node:internal/child_process:303:5)
[CI/test]   ❗  ::error::Unhandled error: Error: The process '/usr/bin/sudo' failed with exit code 100
[CI/test]   ❌  Failure - Main Install tool dependencies
[CI/test] exitcode '1': failure
[CI/test]   ⚙  ::set-output:: exit-code=
[CI/test]   ⚙  ::set-output:: exit-message=
[CI/test]   ⚙  ::set-output:: total-errors=
[CI/test]   ⚙  ::set-output:: total-files=
[CI/test]   ⚙  ::set-output:: cache-hit=false
[CI/test]   ⚙  ::set-output:: version-semver=1.6.26
[CI/test]   ⚙  ::set-output:: version-tag=v1.6.26
[CI/test]   ❌  Failure - Main actionlint
[CI/test] exitcode '1': failure

Basically, the debian package database is empty, so you need to run apt-get update first.
It's also nice to set the DEBIAN_FRONTEND environment variable to noninteractive to not get weird warnings.

🔗 Related issue

🏗️ Type of change

  • 📚 Examples / docs / tutorials
  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • 🥂 Improvement (non-breaking change which improves an existing feature)
  • 🚀 New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to change)
  • 🚨 Security fix
  • ⬆️ Dependencies update

✅ Checklist

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
@bhundven bhundven requested a review from a team as a code owner November 12, 2023 20:29
@DariuszPorowski DariuszPorowski self-assigned this Nov 13, 2023
@DariuszPorowski DariuszPorowski added bug Something isn't working enhancement New feature or request labels Nov 13, 2023
@DariuszPorowski DariuszPorowski merged commit 6f87bc2 into raven-actions:main Nov 13, 2023
4 of 5 checks passed
@bhundven bhundven deleted the shellcheck branch November 13, 2023 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants