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

Apko2 #311

Closed
wants to merge 2 commits into from
Closed

Apko2 #311

wants to merge 2 commits into from

Conversation

alexeagle
Copy link
Collaborator

@alexeagle alexeagle commented Jul 24, 2023

This is failing here https://github.com/chainguard-dev/go-apk/blob/b8abc44cc8ca/pkg/apk/implementation.go#L204

FYI @jonjohnsonjr

~/Projects/rules_oci$ bazel build examples/apko:wolfi
INFO: Analyzed target //examples/apko:wolfi (1 packages loaded, 2 targets configured).
INFO: Found 1 target...
ERROR: /home/alexeagle/Projects/rules_oci/examples/apko/BUILD.bazel:23:8: Executing genrule //examples/apko:wolfi failed: (Exit 2): bash failed: error executing command (from target //examples/apko:wolfi) /bin/bash -c ... (remaining 1 argument skipped)

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
ℹ️            | loading config file: examples/apko/wolfi-base.yaml
ℹ️  x86_64    | Building images for 1 architectures: [amd64]
ℹ️  x86_64    | building tags [wolfi-base:test]
ℹ️            | loading config file: examples/apko/wolfi-base.yaml
ℹ️  x86_64    | build context:
ℹ️  x86_64    | build options:
{
	"withVCS": true,
	"workDir": "/tmp/apko-322697157/x86_64",
	"tarballPath": "/tmp/apko-322697157/image/apko-x86_64.tar.gz",
	"tags": [
		"wolfi-base:test"
	],
	"sourceDateEpoch": "1970-01-01T00:00:00Z",
	"arch": "amd64",
	"Log": {
		"Out": {},
		"Fields": null,
		"Level": 4
	}
}
ℹ️  x86_64    | image configuration:
ℹ️  x86_64    |   contents:
ℹ️  x86_64    |     repositories: [https://packages.wolfi.dev/os]
ℹ️  x86_64    |     keyring:      [https://packages.wolfi.dev/os/wolfi-signing.rsa.pub]
ℹ️  x86_64    |     packages:     [ca-certificates-bundle wolfi-base]
ℹ️  x86_64    |   entrypoint:
ℹ️  x86_64    |     type:    
ℹ️  x86_64    |     command:     /bin/sh -l
ℹ️  x86_64    |     service: map[]
ℹ️  x86_64    |     shell fragment: 
ℹ️  x86_64    | doing pre-flight checks
ℹ️  x86_64    | building image fileystem in /tmp/apko-322697157/x86_64
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x9ad6e2]

goroutine 51 [running]:
github.com/chainguard-dev/go-apk/pkg/apk.(*APK).InitDB(0x0, {0x14d2078, 0xc000042028}, {0x1d1d298, 0x0, 0x0})
	github.com/chainguard-dev/[email protected]/pkg/apk/implementation.go:204 +0x62
chainguard.dev/apko/pkg/apk.(*APK).Initialize(0xc00029ec00, 0xc0000ed508)
	chainguard.dev/apko/pkg/apk/apk.go:80 +0x65
chainguard.dev/apko/pkg/build.(*buildImplementation).InitializeApk(0xc00012c520?, {0x14dd990?, 0xc00074cde0?}, 0xc000596e30?, 0xc000596da0?)
	chainguard.dev/apko/pkg/build/build_implementation.go:199 +0xd2
chainguard.dev/apko/pkg/build.buildImage({0x14dd990, 0xc00074cde0}, 0xc00074d7a0?, 0xc0000ed710, 0x4?, 0x5?)
	chainguard.dev/apko/pkg/build/build_implementation.go:266 +0x193
chainguard.dev/apko/pkg/build.(*Context).BuildImage(0xc0000ed500)
	chainguard.dev/apko/pkg/build/build.go:122 +0x69
chainguard.dev/apko/pkg/build.(*Context).BuildLayer(0xc000766c00?)
	chainguard.dev/apko/pkg/build/build.go:156 +0x28
chainguard.dev/apko/internal/cli.buildImageComponents.func1()
	chainguard.dev/apko/internal/cli/build.go:273 +0x2d0
golang.org/x/sync/errgroup.(*Group).Go.func1()
	golang.org/x/[email protected]/errgroup/errgroup.go:75 +0x64
created by golang.org/x/sync/errgroup.(*Group).Go
	golang.org/x/[email protected]/errgroup/errgroup.go:72 +0xa5
Target //examples/apko:wolfi failed to build
Use --verbose_failures to see the command lines of failed build steps.

@thesayyn
Copy link
Collaborator

thesayyn commented Aug 4, 2023

@alexeagle do we still need this here?

@alexeagle alexeagle closed this Aug 4, 2023
@alexeagle
Copy link
Collaborator Author

We're moving it to chainguard-dev/rules_apko

@thesayyn thesayyn deleted the apko2 branch May 10, 2024 22:34
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