Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Argument error from Module.put_attribute/3 when installing nerves_bootstrap archive #281

Open
fhunleth opened this issue Aug 21, 2023 · 0 comments

Comments

@fhunleth
Copy link
Member

The history of this error is at https://elixirforum.com/t/argumenterror-installing-nerves-bootstrap/57611/1.

Here's a trace of what happens:

    $ mix archive.install hex nerves_bootstrap
    Resolving Hex dependencies…
    Resolution completed in 0.019s
    New:
    nerves_bootstrap 1.11.5

        Getting nerves_bootstrap (Hex package)
        All dependencies are up to date
        Compiling 12 files (.ex)

    == Compilation error in file lib/attic/env.ex ==
    ** (ArgumentError) could not call Module.put_attribute/3 because the module Nerves.Bootstrap.Aliases is in read-only mode (@after_compile)
    (elixir 1.15.1) lib/module.ex:2305: Module.assert_not_readonly!/2
    (elixir 1.15.1) lib/module.ex:2007: Module.put_attribute/5
    lib/attic/env.ex:2: (module)

Per the forum post, this is on MacOS using Homebrew. All installation seems to have been done the expected way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant