-
-
Notifications
You must be signed in to change notification settings - Fork 873
Description
Thank you for your work on gleam.
This request is a more fleshed out version of #1069, but as I did not create that issue, I am unable to reopen it.
I wanted to try gleam
, installed it, ran gleam new
which succeeded, and got on a flight without wifi, thinking I'll be able to play with it while offline.
But this was not to be, because neither gleam build
nor gleam test
work on first run in a project without an internet connection.
$ gleam test
Resolving versions
error: Dependency resolution failed
An error occurred while determining what dependency packages and versions
should be downloaded.
The error from the version resolver library was:
Decision making failed
It would be great if gleam new
did the steps necessary to have a minimally working version of the package it creates be buildable.
I imagine that one way to do this would be to use a centralized cache for gleam packages that can be shared across repositories, so that once a user has successfully built one project from a quickstart gleam new
, building another project from a barebones gleam new
would grab those same standard libraries, instead of re-downloading them for every first gleam build
in any given project.
I do want to acknowledge that gleam build
and gleam test
do not require an internet connection on subsequent calls (provided no new libraries are added).