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

log and continue when .pc file can't be loaded #694

Merged
merged 1 commit into from
Sep 19, 2023

Conversation

imjasonh
Copy link
Member

Also only match files ending in .pc

We weren't able to build some packages that contained paths like usr/share/mime/application/vnd.tcpdump.pcap.xml because the post-build pkgconfig pass tried to parse that file and failed.

Signed-off-by: Jason Hall <jason@chainguard.dev>
@@ -614,7 +614,8 @@ func generatePkgConfigDeps(pc *PackageBuild, generated *config.Dependencies) err

pkg, err := pkgconfig.Load(filepath.Join(pc.WorkspaceSubdir(), path))
if err != nil {
return err
pc.Logger.Printf("WARNING: Unable to load .pc file (%s) using pkgconfig: %v", path, err)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
pc.Logger.Printf("WARNING: Unable to load .pc file (%s) using pkgconfig: %v", path, err)
pc.Logger.Warnf("Unable to load .pc file (%s) using pkgconfig: %v", path, err)

@imjasonh imjasonh merged commit 4495533 into chainguard-dev:main Sep 19, 2023
26 checks passed
@imjasonh imjasonh mentioned this pull request Sep 19, 2023
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.

3 participants