Skip to content
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

How to inform users there's a newer metadata? #860

Closed
hasufell opened this issue Jul 19, 2023 · 2 comments
Closed

How to inform users there's a newer metadata? #860

hasufell opened this issue Jul 19, 2023 · 2 comments

Comments

@hasufell
Copy link
Member

The metadata format is subject to change, e.g. when we add a new distro constructor or add new fields etc.

At the moment, GHCup relies on the fact that the URL is compiled into the program:

ghcupURL = [uri|https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-0.0.7.yaml|]

However, if users use the ghcup add-release-channel feature (e.g. for nightlies), they might not know they're running an outdated metadata variant.

I can see a couple of ways to resolve that:

  1. Manual: check for newer file versions via some brute-force mechanism in the proposed healthcheck command
  2. Automatic: add deprecation info into the metadata file itself, possibly with a link to the new URL. On startup, GHCup can warn about it.
@hasufell
Copy link
Member Author

@mpickering since relevant for nightlies

@hasufell hasufell added this to the 0.1.19.6 milestone Jul 22, 2023
@hasufell
Copy link
Member Author

Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant