moby / buildkit

concurrent, cache-efficient, and Dockerfile-agnostic builder toolkit
https://github.com/moby/moby/issues/34227
Apache License 2.0
7.83k stars 1.09k forks source link

checks: add redundant target platform check #5091

Closed jsternberg closed 2 days ago

jsternberg commented 4 days ago

Adds a linter check that checks if --platform=$TARGETPLATFORM is used and sends a linter message marking this as redundant. This is because $TARGETPLATFORM is the default.