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

Missing priv folder in hex release 0.5.0 #131

Closed
adriffaud opened this issue May 25, 2022 · 1 comment · Fixed by #132
Closed

Missing priv folder in hex release 0.5.0 #131

adriffaud opened this issue May 25, 2022 · 1 comment · Fixed by #132

Comments

@adriffaud
Copy link
Contributor

Environment

  • Bonny version: 0.5.0
  • Elixir & Erlang/OTP versions (elixir --version): Erlang/OTP 24 - Elixir 1.13.0
  • Operating system: WSL2 Ubuntu 22.04

Current behavior

When following the tutorial and running: mix bonny.gen.controller Greeting greetings it fails with this error:

❯ mix bonny.gen.controller Greeting greetings
** (File.Error) could not read file "/home/adrien/dev/hello_operator/_build/dev/lib/bonny/priv/templates/bonny.gen/controller.ex": no such file or directory
    (elixir 1.13.0) lib/file.ex:355: File.read!/1
    lib/eex.ex:242: EEx.compile_file/2
    lib/eex.ex:279: EEx.eval_file/3
    lib/mix/tasks/bonny.gen.controller.ex:58: Mix.Tasks.Bonny.Gen.Controller.run/1
    (mix 1.13.0) lib/mix/task.ex:397: anonymous fn/3 in Mix.Task.run_task/3
    (mix 1.13.0) lib/mix/cli.ex:84: Mix.CLI.run_task/2

Looking at Hex preview, it looks like the priv folder is not included in the 0.5.0 release.
The folder was present in 0.4.4 release.

Expected behavior

Be able to run mix bonny.gen.controller Greeting greetings and have the controller generated 🙂

@mruoss
Copy link
Collaborator

mruoss commented May 25, 2022

aye... sorry for that! :(

Fixed in 0.5.1.

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

Successfully merging a pull request may close this issue.

2 participants