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

Don't use [[ in Makefile #11326

Merged
merged 1 commit into from
Jan 18, 2024
Merged

Conversation

jonjohnsonjr
Copy link
Contributor

@jonjohnsonjr jonjohnsonjr commented Jan 18, 2024

The melange presubmit runs in an ubuntu container which doesn't seem to contain the [[ binary but does contain the [ binary. This is all very silly but I think this makes the Makefile slightly more portable. I don't understand how computers work.

Failed presubmit: https://github.com/chainguard-dev/melange/actions/runs/7563217425/job/20595293572?pr=935

Relevant logs:

getting source dir for package glibc with dir .
/bin/sh: 1: [[: not found
/bin/sh: 1: [[: not found

The melange presubmit runs in an ubuntu container which doesn't seem to
contain the [[ binary but does contain the [ binary. This is all very
silly but I think this makes the Makefile slightly more portable. I
don't understand how computers work.

Signed-off-by: Jon Johnson <jon.johnson@chainguard.dev>
@jonjohnsonjr jonjohnsonjr added this pull request to the merge queue Jan 18, 2024
Merged via the queue into wolfi-dev:main with commit 907dd61 Jan 18, 2024
8 checks passed
@jonjohnsonjr jonjohnsonjr deleted the makeshell branch January 18, 2024 00:29
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