Skip to content

Conversation

@121watts
Copy link

@121watts 121watts commented Dec 10, 2025

Summary

When running depot bake with multiple targets on different platforms, the logs were like provided no platform info to help you figure out which arch was doing what.

What was happening

Bake logs showed target names but not platforms:

[frontend 1/4] FROM alpine
[backend 1/4] FROM alpine

Even though frontend was building on amd64 and backend on arm64!

What happens now

Bake now tells BuildKit to show platform prefixes:

[frontend linux/amd64 1/4] FROM alpine
[backend linux/arm64 1/4] FROM alpine

Much easier to follow what's happening where. 🎯

Changes

  • bake.go: Set DEPOT_FORCE_PLATFORM_PREFIX=true build arg for all bake targets
  • build.go: Convert that build arg to force-platform-prefix frontend attribute

Test plan

Anything else?

This depends on https://github.com/depot/buildkit-private/pull/37 being deployed first — the CLI sends the attribute, but builders need to understand it.

Closes DEP-2793

@linear
Copy link

linear bot commented Dec 10, 2025

@121watts
Copy link
Author

Closing this in favor of a different approach.

The buildkit frontend modification won't work for builds using custom # syntax = ... directives, which bypass our frontend entirely.

Pivoting to a UI-based solution that infers platform from the build machine instead.

@121watts 121watts closed this Dec 10, 2025
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