Ambiguous Call during Compile because of Extension
I'm creating an extension and I tried adding an actions option to it, but it won't compile the resources anymore because it cant tell which actions function to use.
Extension definition:
20 Replies
How strange, I could have sworn I fixed this in spark main
I’ll have to reproduce this specific issue instead of approximating it in spark.
@barnabasj could you DM me the entire extension? I could paste it into one of my own apps potentially?
sure, might opensource it later on anyway
So this isn't an error in my app when using spark
main
...
that's strange, I have the same thing and it gives me a compile error. let me try again.
make sure to
mix deps.update spark
and that you're pointed at mainah, the stuff I sent you. I changed actions to allowed_actions in there
to make it work for now
huh.
ohhhh
wow
so that was actually opening up the
actions
block :what:yup
oh, yeah okay, hm...
the reason it passed my tests is because its all from the same extension
but it can't know to do this for other extensions
this ones a thinker
I think I'm going to have to do something very ugly but that its doable perhaps
okay, should be fixed in main 🙂
compiling...
compiled successfully 🚀
🥳
@barnabasj glad you and Zach got it sorted. I’m interested in what you learned writing an RBAC and whether you’re able to share any code? We’ve talked about writing one as part of the ecosystem so keen to know more.
Have to talk to some people first, let me get back to you on this tomorrow
I figured. Take your time.
We moved the code into a separate repository and should be able to open that up by the end of the week or so
That’s awesome.
Thank you.
it's open now https://github.com/traveltechdeluxe/ash-rbac
GitHub
GitHub - traveltechdeluxe/ash-rbac
Contribute to traveltechdeluxe/ash-rbac development by creating an account on GitHub.
you should add this to #showcase 😄
🚀
Awesome!