You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To fix it, currently you need to delete ~/.pier/downloads/stackage/setup/stack-setup-2.yaml and then run pier clean.
Other downloaded files (e.g. LTS versions, package tarballs) have version numbers in their names (and are in theory supposed to be frozen) so are less vulnerable to this issue.
We'll have to look into what Stack does. Some possible workarounds:
At minimum, we we should be able to give a better error message when this occurs (and potentially not require an explicit pier clean).
We could download it for every (non-clean?) build, and save it somewhere (with the git hash in its filename). Unfortunately this breaks "airplane mode".
We could provide an explicit command (maybe pier setup or pier refresh?) that "invalidates" it, i.e., causes pier to re-download it again the next time. And, perhaps, mark downloads by whether or not they need to be re-downloaded.
The text was updated successfully, but these errors were encountered:
Is it safe to assume that this yaml file is append-only? That is, any entry in the local copy is valid, but the server copy may include more entries that we don't yet know about. Then we can handle the common cases by checking the local copy first, fetching the remote if we don't have the requested key locally, and fetch at most once per invocation. I think this is how stack handles the Hackage index.
If this seems like the right approach, I'm happy to take a stab at implementing it.
The
stack-setup-2.yaml
file occasionally gets out of date -- in particular, every time there's a new version of GHC:To fix it, currently you need to delete
~/.pier/downloads/stackage/setup/stack-setup-2.yaml
and then runpier clean
.Other downloaded files (e.g. LTS versions, package tarballs) have version numbers in their names (and are in theory supposed to be frozen) so are less vulnerable to this issue.
We'll have to look into what Stack does. Some possible workarounds:
pier clean
).pier setup
orpier refresh
?) that "invalidates" it, i.e., causes pier to re-download it again the next time. And, perhaps, mark downloads by whether or not they need to be re-downloaded.The text was updated successfully, but these errors were encountered: