constellation/cli/internal/cmd/miniup_cross.go
Thomas Tendyck 3b9f7530fb license: change headers
find -name '*.go' -exec sed -i 's/SPDX-License-Identifier: AGPL-3.0-only/SPDX-License-Identifier: BUSL-1.1/' {} +
2025-07-15 23:34:48 +02:00

21 lines
544 B
Go

//go:build !linux || !amd64
/*
Copyright (c) Edgeless Systems GmbH
SPDX-License-Identifier: BUSL-1.1
*/
package cmd
import (
"fmt"
"io"
"runtime"
)
// checkSystemRequirements checks if the system meets the requirements for running a MiniConstellation cluster.
// This will always fail on non-linux/amd64 platforms.
func (m *miniUpCmd) checkSystemRequirements(_ io.Writer) error {
return fmt.Errorf("creation of a QEMU based Constellation is not supported for %s/%s, a linux/amd64 platform is required", runtime.GOOS, runtime.GOARCH)
}