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

Rework some shell code for supervisor and hwloc #35579

Merged
merged 3 commits into from
Dec 1, 2024

Conversation

luhring
Copy link
Member

@luhring luhring commented Dec 1, 2024

This attempts to fix our ability to parse shell code with melange by working around parsing bugs in https://github.com/mvdan/sh in a way that hopefully doesn't actually change build logic.

We first noticed this problem while seeing wolfictl's CI failing on the latest bump of melange: https://github.com/wolfi-dev/wolfictl/actions/runs/12088082103/job/33710862119?pr=1345

Related to chainguard-dev/melange#1622

cc: @jonjohnsonjr @imjasonh

Signed-off-by: Dan Luhring <dluhring@chainguard.dev>
Signed-off-by: Dan Luhring <dluhring@chainguard.dev>
Signed-off-by: Dan Luhring <dluhring@chainguard.dev>
@luhring luhring merged commit 0ede777 into wolfi-dev:main Dec 1, 2024
16 checks passed
jonjohnsonjr added a commit to jonjohnsonjr/os that referenced this pull request Dec 5, 2024
This was fixed in wolfi-dev#35579 but not
bumped so we have a bad supervisor package:

```
$ curl -sL https://packages.wolfi.dev/os/aarch64/supervisor-4.2.5-r5.apk | tar -Oxz etc/logrotate.d/supervisord
/var/log/supervisor/*.log {
  missingok
  weekly
  notifempty
  nocompress
}

chmod 600 /home/build/melange-out/supervisor/etc/supervisord.conf
chmod 644 /home/build/melange-out/supervisor/etc/logrotate.d/supervisord

find "/home/build/melange-out/supervisor" -name "*.pyo" -exec rm -rf '{}' +
find "/home/build/melange-out/supervisor" -name "tests" -exec rm -rf '{}' +

exit 0
```

Signed-off-by: Jon Johnson <jon.johnson@chainguard.dev>
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