Open joshi-monster opened 2 days ago
I think we can now use for this the new dependency trimming code that was added for gleam update <specific-package>
.
Oh that's great, I'll look into this tomorrow/this week then!
It looks like the remove command first read the dependences from gleam.toml
, removes the given ones, rewrites the gleam.toml
file and then downloads again the new dependencies to generate a new manifest.
Can't we provide an "offline" option that could update the manifest locally ?
We want to never use the network, we don't want to make it configurable.
I'm not sure to understand, gleam remove
already uses the network ( compiler-cli/src/dependencies.rs#download
, used by remove.rs#command
)
This ticket is for removing the network usage.
While on a train, I noticed that I cannot remove packages while being offline:
I can't think of a case where deleting a package would change the resolved versions of the other installed packages, since all their versions are locked in the manifest anyways. Dependencies are also recorded in the manifest, so removing transitive packages should also be possible without calling hex again. ~ :purple_heart: