Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/orchestrator/cmd/copy-build/main.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// copy-build requires Linux. The template metadata package imports
// sandbox/block which uses Linux-only syscalls (userfaultfd, memfd).
// Darwin support is blocked on separating the cross-platform data types
// from the Linux-only implementation; tracked in issue #3316.
package main

import (
Expand Down
3 changes: 3 additions & 0 deletions packages/orchestrator/pkg/template/metadata/prefetch.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build linux

// See template_metadata.go for why this file is restricted to Linux.
package metadata

import (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
//go:build linux

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Keep template metadata available off Linux

On Darwin, the documented go run ./cmd/copy-build command imports this package, but these are its only two non-test files; constraining both to Linux makes Go reject the import because all package files are excluded. pkg/sandbox/block/prefetch_tracker.go is already cross-platform and provides the data types used here, so these tags should remain removed or portable metadata files must be provided.

Useful? React with 👍 / 👎.


// The build tag above restricts this file to Linux because it imports
// sandbox/block, which depends on Linux-only syscalls. Once the cross-platform
// data types are separated from the Linux-only block implementation (issue #3316),
// this tag can be removed.
package metadata

import (
Expand Down