Always update the install script
If we go with this, imho we should reopen https://github.com/dlang/installer/pull/274 (config file) and allow people to opt-out of this. There are certainly use cases in which always updating the installer can be annoying, especially if you use the install script with an already installed compiler this will add a few seconds extra to every activation.
Thanks for your pull request, @wilzbach!
Bugzilla references
Your PR doesn't reference any Bugzilla issue.
If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.
I'd be in favor of some regular (weekly) etag based check.
Where can we store the etag?
Something like ${XDG_CACHE_HOME:-$HOME/.cache}/dlang-installer/self-etag ?
This seems a bit too blunt and also unexpected for users.
Fair enough.
I think this is fine to do when installing a new version.
Currently "install" (with a specific version) does nothing if that version compiler is already installed, and I think that should continue not performing any network activity.
You could also make use of the Last-Modified and If-Modified-Since headers to avoid downloading/installing it if it's up to date. wget has this with its -N switch; for curl, parsing the headers will be necessary.
@wilzbach, is it safe to assume that you no longer plan on pursuing this further?
@wilzbach, is it safe to assume that you no longer plan on pursuing this further?
Well, I'm definitely not actively working on this. Sorry. FYI: There was a recent attempt on this (https://github.com/dlang/installer/pull/457) that I unfortunately had to revert as it was merged without review.