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

Check entrypoint array for emptiness #137

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

picsel2
Copy link

@picsel2 picsel2 commented Apr 26, 2024

Description

The entrypoint array of BuildahConfigSettings might be empty. It makes no sense to push the --entrypoint argument then, thus breaking the convertArrayToStringArg method.

Related Issue(s)

Closes #136

Checklist

  • This PR includes a documentation change
  • This PR does not need a documentation change

  • This PR includes test changes
  • This PR's changes are already tested

  • This change is not user-facing
  • This change is a patch change
  • This change is a minor change
  • This change is a major (breaking) change

Changes made

This adds a check guard against an empty settings.entrypoint array when constructing the buildah config command line.

The entrypoint array of BuildahConfigSettings might be empty. It makes
no sense to push the `--entrypoint` argument then, thus breaking the
`convertArrayToStringArg` method.

Closes redhat-actions#136
@dannywebster
Copy link

@divyansh42 Would you mind taking a look at this PR, please? 🙏🏻

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.

[BUG] Wrong entrypoint set when omitting the entrypoint parameter
2 participants