Skip to content

Bad CPU type in executable running macOS on an m1 #528

@mvllow

Description

@mvllow

I am having trouble executing StyLua from the pre-built releases. I tried both stylua-macos-aarch64 and stylua-macos. I assumed aarch64 was for Apple Silicon but maybe I'm misunderstanding.

$ ./stylua example.lua

exec: Failed to execute process: Bad CPU type in executable.

My usual method of installing StyLua is brew install stylua which works as expected, however there are some tools that automatically manage the installation of formatters and they tend to use the release binaries.

Appreciate any help :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions