i have a little toy project in mojo and recently it has started to fail its builds in GitHub actions.
I already had a look with the maintainer of setup-mojo-action but we couldnt find out the reason for the failure. Maybe you could help me find out (and fix) what is wrong here?
Got it to work now with pixi, but initially i also got
pixi run mojo build main.π₯
Error: Γ failed to solve the conda requirements of 'default' 'linux-64'
β°ββΆ Cannot solve the request because of: No candidates were found for max >=24.5.0,<25.
Which i assume is also what caused the original error
magic run mojo build main.π₯
Γ failed to fetch mojo-jupyter-24.5.0-release.conda
β°ββΆ HTTP status client error (404 Not Found) for url (https://
repo.prefix.dev/max/noarch/mojo-jupyter-24.5.0-release.conda)
except that the message was unhelpful.
Also noticed that my code didnt compile anymore.
Reasons were missing .size on a List[int], using inout instead of mut (with an awful error message), input can raise (where can i find the types of errors that it actually can raise?)
Please see the official announcement about magic being deprecated. Note the the .lock file is auto-generated and can be removed. Then rename your mojoproject.toml to pixi.toml and use pixi cli commands instead of magic.
Figured that out now and after fixing some compiler errors it is now working again.
So the main problems were just the awful error messages, both from magic for the non-existing max version (24.5 or something like that) and then also later with the new version the compiler error when using inout and also the lack of documentation for what errors builtins can raise (in my case input)