We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2dcd64a + 605d504 commit 69151adCopy full SHA for 69151ad
cmd/limactl/main.go
@@ -77,8 +77,9 @@ func newApp() *cobra.Command {
77
logrus.SetLevel(logrus.DebugLevel)
78
}
79
80
- if osutil.IsBeingRosettaTranslated() {
+ if osutil.IsBeingRosettaTranslated() && cmd.Parent().Name() != "completion" && cmd.Name() != "generate-doc" && cmd.Name() != "validate" {
81
// running under rosetta would provide inappropriate runtime.GOARCH info, see: https://github.com/lima-vm/lima/issues/543
82
+ // allow commands that are used for packaging to run under rosetta to allow cross-architecture builds
83
return errors.New("limactl is running under rosetta, please reinstall lima with native arch")
84
85
0 commit comments