Skip to content

Check entrypoint array for emptiness#137

Open
picsel2 wants to merge 1 commit intoredhat-actions:mainfrom
picsel2:136-fix-empty-entrypoint
Open

Check entrypoint array for emptiness#137
picsel2 wants to merge 1 commit intoredhat-actions:mainfrom
picsel2:136-fix-empty-entrypoint

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? 🙏🏻

@skoved skoved removed this from Issue Tracking Aug 21, 2025
@skoved skoved moved this to Need Review in Issue Tracking Aug 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Need Review

Development

Successfully merging this pull request may close these issues.

[BUG] Wrong entrypoint set when omitting the entrypoint parameter

2 participants