GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: add platform support to pack builder by matejvasek · Pull Request #3603 · knative/func

Conversation

@matejvasek

@matejvasek matejvasek commented Apr 12, 2026

Copy link
Copy Markdown
Contributor

Changes

  • feat: add platform support to pack builder

    The pack builder previously rejected any --platform flag with a hard error. Since the pack library already supports a Platform field in BuildOptions, this enables single-platform builds following the same pattern as the s2i builder: resolve the builder image via docker.GetPlatformImage and set opts.Platform so pack also pulls the correct run image.

    Multiple platforms are still rejected with a clear error, and omitting --platform continues to work as before.

feat: add platform support to pack builder

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@knative-prow
knative-prow Bot requested review from dsimansk and jrangelramos April 12, 2026 12:48
@knative-prow knative-prow Bot added approved 🤖 PR has been approved by an approver from all required OWNERS files. size/L 🤖 PR changes 100-499 lines, ignoring generated files. labels Apr 12, 2026
@codecov

codecov Bot commented Apr 12, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 58.82353% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 56.25%. Comparing base (ada57d2) to head (280321f).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
cmd/errors.go 0.00% 3 Missing ⚠️
pkg/buildpacks/builder.go 72.72% 2 Missing and 1 partial ⚠️
cmd/build.go 66.66% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3603      +/-   ##
==========================================
- Coverage   56.26%   56.25%   -0.02%     
==========================================
  Files         180      180              
  Lines       20504    20522      +18     
==========================================
+ Hits        11537    11544       +7     
- Misses       7762     7775      +13     
+ Partials     1205     1203       -2     
Flag Coverage Δ
e2e 36.19% <11.76%> (+0.06%) ⬆️
e2e go 32.84% <7.69%> (+0.26%) ⬆️
e2e node 28.59% <7.69%> (+0.27%) ⬆️
e2e python 33.21% <7.69%> (+0.28%) ⬆️
e2e quarkus 28.73% <7.69%> (+0.27%) ⬆️
e2e rust 28.08% <7.69%> (+0.20%) ⬆️
e2e springboot 26.59% <7.69%> (+0.27%) ⬆️
e2e typescript 28.70% <7.69%> (+0.27%) ⬆️
e2e-config-ci 18.07% <7.69%> (-0.02%) ⬇️
integration 17.45% <0.00%> (+0.02%) ⬆️
unit macos-14 43.30% <53.84%> (-0.07%) ⬇️
unit macos-latest 43.30% <53.84%> (-0.07%) ⬇️
unit ubuntu-24.04-arm 43.50% <58.82%> (-0.06%) ⬇️
unit ubuntu-latest 44.18% <53.84%> (-0.07%) ⬇️
unit windows-latest 43.33% <53.84%> (-0.07%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@matejvasek @claude
feat: add platform support to pack builder
280321f
The pack builder previously rejected any --platform flag
with a hard error. Since the pack library already supports
a Platform field in BuildOptions, this enables single-platform
builds following the same pattern as the s2i builder: resolve
the builder image via docker.GetPlatformImage and set
opts.Platform so pack also pulls the correct run image.

Multiple platforms are still rejected with a clear error,
and omitting --platform continues to work as before.

Co-authored-by: Claude Opus 4.6 <[email protected]>
Signed-off-by: Matej Vašek <[email protected]>
@matejvasek
matejvasek force-pushed the platform-pack branch from b5ae505 to 280321f Compare April 13, 2026 06:48
@matejvasek
matejvasek requested review from gauron99 and lkingland April 13, 2026 07:01
@matejvasek

matejvasek commented Apr 13, 2026

Copy link
Copy Markdown
Contributor Author

ptal @lkingland @gauron99

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

gauron99
gauron99 approved these changes Apr 14, 2026
View reviewed changes

@gauron99 gauron99 left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

/lgtm

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@knative-prow knative-prow Bot assigned gauron99 Apr 14, 2026
@knative-prow knative-prow Bot added the lgtm 🤖 PR is ready to be merged. label Apr 14, 2026
@knative-prow

knative-prow Bot commented Apr 14, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: gauron99, matejvasek

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [gauron99,matejvasek]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@knative-prow
knative-prow Bot merged commit 2eabfc8 into knative:main Apr 14, 2026
41 checks passed

Uh oh!

There was an error while loading. Please reload this page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@gauron99 gauron99 gauron99 approved these changes
@dsimansk dsimansk Awaiting requested review from dsimansk
@jrangelramos jrangelramos Awaiting requested review from jrangelramos
@lkingland lkingland Awaiting requested review from lkingland

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@gauron99 gauron99

Labels

approved 🤖 PR has been approved by an approver from all required OWNERS files. lgtm 🤖 PR is ready to be merged. size/L 🤖 PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@matejvasek @gauron99
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.