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

feat: respect target-architecture to filter archs #376

Merged
merged 2 commits into from
Apr 3, 2023

Conversation

imjasonh
Copy link
Member

@imjasonh imjasonh commented Apr 3, 2023

This lets configs describe which archs they want to be built for. If the field is unset, this assumes all architectures. If the field is set to ['all'], we'll log a warning and interpret it as if it was unset.

I've updated an example to specify it only wants to be built for one arch. These work, and build only for that one configured arch:

$ go run ./ build examples/aws-sdk-core.yaml --arch=x86_64
$ go run ./ build examples/aws-sdk-core.yaml

This fails:

$ go run ./ build examples/aws-sdk-core.yaml --arch=aarch64
Error: target-architecture and --arch do not overlap, nothing to build

imjasonh added 2 commits April 3, 2023 13:57
Signed-off-by: Jason Hall <jason@chainguard.dev>
Signed-off-by: Jason Hall <jason@chainguard.dev>
@imjasonh imjasonh requested a review from kaniini April 3, 2023 18:04
@imjasonh imjasonh requested a review from a team as a code owner April 3, 2023 18:04
@imjasonh imjasonh enabled auto-merge April 3, 2023 18:07
@imjasonh imjasonh merged commit fe5e36a into chainguard-dev:main Apr 3, 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.

2 participants