-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
Exercise dependencies #186
Comments
If this is expected behaviour when writing PureScript, having the student install would be an okay approach, but don't forget that we can't facilitate that (currently) when using the Web interface. Having a common set of dependencies, or the "correct" set per exercise might be the way to go. |
Thanks for the feedback @SleeplessByte. I had not considered the new web interface. I'll poke around and see how https://try.purescript.org handles this situation. |
As @SleeplessByte alluded to, the PureScript test runner runs without networking, which means that it can't install any additional dependencies when trying to run the tests. Tracks workaround this by pre-installing dependencies within the Dockerfile (which does have access to networking), which means that they won't have to be retrieved from the internet once the tests run. Applying this to your question, you can either:
I think 2 is the more safer approach. |
Anything outstanding here? |
Hi, I guess that ErikSchierboom's option 2 would be a good way to solve these problems quite easily as there are currently not that many exercises in the track (of course this might take its toll while adding new exercises later). Maybe with broader choice in case of more reasonable solutions. I am happy to help with that but my knowledge of Purescript is very limited so far. That is I am not in position to actually choose all the recommended libraries. But I guess it should be safe to include at least some more common data structures, broader string utilities and so on (eg. unordered-collections, strings-extra, parsing, ...). Maybe we can come up with some list of recommendations together? In any case is there anything I can help with here? |
I've put in some work into the switch over to Spago. One thing that has me thinking is how to deal with exercise dependencies (spago.dhall).
spago.dhall
file, i.e.solution.dhall
to use for building and testing under CI.Your thoughts?
The text was updated successfully, but these errors were encountered: