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

Newest release still broken #50

Closed
MCWertGaming opened this issue Oct 6, 2021 · 6 comments
Closed

Newest release still broken #50

MCWertGaming opened this issue Oct 6, 2021 · 6 comments
Labels
bug Something isn't working

Comments

@MCWertGaming
Copy link
Contributor

Reopenning #48 as it's still failing for my projects:

Installing clang-format-12
Get:1 http://security.ubuntu.com/ubuntu impish-security InRelease [90.7 kB]
Get:2 http://archive.ubuntu.com/ubuntu impish InRelease [269 kB]
Get:3 http://archive.ubuntu.com/ubuntu impish-updates InRelease [90.7 kB]
Get:4 http://archive.ubuntu.com/ubuntu impish-backports InRelease [90.7 kB]
Get:5 http://archive.ubuntu.com/ubuntu impish/multiverse amd64 Packages [255 kB]
Get:6 http://archive.ubuntu.com/ubuntu impish/restricted amd64 Packages [119 kB]
Get:7 http://archive.ubuntu.com/ubuntu impish/universe amd64 Packages [16.7 MB]
Get:8 http://archive.ubuntu.com/ubuntu impish/main amd64 Packages [1809 kB]
Fetched 19.5 MB in 2s (8755 kB/s)
Reading package lists...
E: Problem executing scripts APT::Update::Post-Invoke 'rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true'
E: Sub-process returned an error code
/entrypoint.sh: line 22: /usr/bin/clang-format-12: No such file or directory
Failed on file: frontend/tools.hpp

/entrypoint.sh: line 22: /usr/bin/clang-format-12: No such file or directory
@MCWertGaming
Copy link
Contributor Author

Seems like the base image has a broken apt-get as a manual test shows:

[root@localhost clang-format-action]# docker run -it ubuntu:impish
root@1a2d4e63dd6a:/# apt-get update
Get:1 http://archive.ubuntu.com/ubuntu impish InRelease [269 kB]
Get:2 http://archive.ubuntu.com/ubuntu impish-updates InRelease [90.7 kB]
Get:3 http://archive.ubuntu.com/ubuntu impish-backports InRelease [90.7 kB]
Get:4 http://security.ubuntu.com/ubuntu impish-security InRelease [90.7 kB]
Get:5 http://archive.ubuntu.com/ubuntu impish/multiverse amd64 Packages [255 kB]
Get:6 http://archive.ubuntu.com/ubuntu impish/main amd64 Packages [1809 kB]
Get:7 http://archive.ubuntu.com/ubuntu impish/restricted amd64 Packages [119 kB]
Get:8 http://archive.ubuntu.com/ubuntu impish/universe amd64 Packages [16.7 MB]                                              
Fetched 19.5 MB in 16s (1199 kB/s)                                                                                           
Reading package lists... Done
E: Problem executing scripts APT::Update::Post-Invoke 'rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true'
E: Sub-process returned an error code
root@1a2d4e63dd6a:/# apt-get purge libappstream3
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package libappstream3
root@1a2d4e63dd6a:/# apt-get install clang-fromat-12
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package clang-fromat-12
root@1a2d4e63dd6a:/#

So the repository updating is not working at all and due to that apt-get is not finding the package. Maybe we should just move back to the base image used before and move the issue to the source project of the base image.
Or use another baseimage.

@jidicula
Copy link
Owner

jidicula commented Oct 6, 2021

Replicated here

@jidicula jidicula added the bug Something isn't working label Oct 6, 2021
@jidicula
Copy link
Owner

jidicula commented Oct 6, 2021

Definitely looks like an issue with apt again.... looks like the purging isn't correcting the issue.

Or use another baseimage.

This could work, I wonder if there's some skinny image we can use instead, that preferably already has several versions of LLVM or clang-format installed.

@MCWertGaming
Copy link
Contributor Author

The script is failing before the purging because apt-get update is repoting the error. Do you know if the ubuntu:impish docker container has a repo on github? Would open an issue there.

I'll check if the UBI images frem redhat have multiple versions of clang available. Otherwise there is the option to build clang format multiple times from source and put them into an ubi-micro image (less than 10 mb while offering real glibc, not sure if alpine make problems)

@MCWertGaming
Copy link
Contributor Author

Okay, UBI has only clang-11, archlinux has clang-12. I have found a debian container that works! Will make a PR quickly

@MCWertGaming
Copy link
Contributor Author

Fixed in #52! Thank you really much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants