Skip to content

feat(backendbinary): require a linux/amd64 backend binary#642

Merged
academo merged 1 commit into
mainfrom
feat/backend-linux-amd64-binary
Jul 14, 2026
Merged

feat(backendbinary): require a linux/amd64 backend binary#642
academo merged 1 commit into
mainfrom
feat/backend-linux-amd64-binary

Conversation

@academo

@academo academo commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator

When a plugin declares a backend and matching binaries are present, the backendbinary pass now requires at least one to target linux/amd64. Platform is read from the embedded Go build info (GOOS/GOARCH), the same approach govulncheck uses, so it works on stripped production builds and does not trust file names.

  • New backend-binary-not-linux-amd64 rule (error) when no linux/amd64 binary is found
  • Tests now build real cross-compiled binaries instead of empty placeholder files

Also fixes a pre-existing map-order bug where a frontend plugin.json with no executable could abort the whole pass and skip validating a nested backend.

// no executable in plugin.json skipping other checks
if data.Executable == "" {
return nil, nil
continue

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

fixes a bug, we were potentially skipping nested backend binaries.

@academo
academo marked this pull request as ready for review July 14, 2026 12:21
@academo
academo requested a review from a team as a code owner July 14, 2026 12:21
@grafana-catalog-project-bot grafana-catalog-project-bot Bot moved this from 📬 Triage to 🔬 In review in Grafana Catalog Team Jul 14, 2026
@academo
academo merged commit 2731b6c into main Jul 14, 2026
11 checks passed
@github-project-automation github-project-automation Bot moved this from 🔬 In review to 🚀 Shipped in Grafana Catalog Team Jul 14, 2026
@academo
academo deleted the feat/backend-linux-amd64-binary branch July 14, 2026 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🚀 Shipped

Development

Successfully merging this pull request may close these issues.

2 participants