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

Warn users about non-ghcup channels #1225

Open
hasufell opened this issue Jan 24, 2025 · 0 comments · May be fixed by #1230
Open

Warn users about non-ghcup channels #1225

hasufell opened this issue Jan 24, 2025 · 0 comments · May be fixed by #1230

Comments

@hasufell
Copy link
Member

These are neither maintained, nor QA'ed by ghcup and may break stuff.

We should warn users.

The easiest way is probably to check url prefix.

qxrein added a commit to qxrein/ghcup-hs that referenced this issue Feb 21, 2025
RESOLVES:   haskell#1225
example output
```
 cabal run ghcup -- debug-info
Configuration is affected by the following files:
- cabal.project
[ Info  ] downloading: https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-0.0.9.yaml as file /home/chikoyeat/.ghcup/cache/ghcup-0.0.9.yaml
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--  0     0    0     0    0     0      0      0 --:--:-- --:--  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
[ Warn  ] Warning: The channel DefaultChannel uses a non-ghcup URL: URI {uriScheme = Scheme {schemeBS = "https"}, uriAuthority = Just (Authority {authorityUserInfo = Nothing, authorityHost = Host {hostBS = "raw.githubusercontent.com"}, authorityPort = Nothing}), uriPath = "/haskell/ghcup-metadata/master/ghcup-0.0.9.yaml", uriQuery = Query {queryPairs = []}, uriFragment = Nothing}
[ Warn  ] Warning: The channel StackChannel uses a non-ghcup URL: URI {uriScheme = Scheme {schemeBS = "https"}, uriAuthority = Just (Authority {authorityUserInfo = Nothing, authorityHost = Host {hostBS = "raw.githubusercontent.com"}, authorityPort = Nothing}), uriPath = "/commercialhaskell/stackage-content/master/stack/stack-setup-2.yaml", uriQuery = Query {queryPairs = []}, uriFragment = Nothing}
[ Warn  ] Warning: The channel CrossChannel uses a non-ghcup URL: URI {uriScheme = Scheme {schemeBS = "https"}, uriAuthority = Just (Authority {authorityUserInfo = Nothing, authorityHost = Host {hostBS = "raw.githubusercontent.com"}, authorityPort = Nothing}), uriPath = "/haskell/ghcup-metadata/master/ghcup-cross-0.0.9.yaml", uriQuery = Query {queryPairs = []}, uriFragment = Nothing}
[ Warn  ] Warning: The channel PrereleasesChannel uses a non-ghcup URL: URI {uriScheme = Scheme {schemeBS = "https"}, uriAuthority = Just (Authority {authorityUserInfo = Nothing, authorityHost = Host {hostBS = "raw.githubusercontent.com"}, authorityPort = Nothing}), uriPath = "/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.9.yaml", uriQuery = Query {queryPairs = []}, uriFragment = Nothing}
[ Warn  ] Warning: The channel VanillaChannel uses a non-ghcup URL: URI {uriScheme = Scheme {schemeBS = "https"}, uriAuthority = Just (Authority {authorityUserInfo = Nothing, authorityHost = Host {hostBS = "raw.githubusercontent.com"}, authorityPort = Nothing}), uriPath = "/haskell/ghcup-metadata/master/ghcup-vanilla-0.0.9.yaml", uriQuery = Query {queryPairs = []}, uriFragment = Nothing}
===== Main ======
Architecture:  x86_64
Platform:      Linux UnknownLinux, 25.05
GHCup Version: v0.1.40.0-49-gc07d28ea

===== Directories ======
base:    /home/qxrein/.ghcup
bin:     /home/qxrein/.ghcup/bin
GHCs:    /home/qxrein/.ghcup/ghc
cache:   /home/qxrein/.ghcup/cache
logs:    /home/qxrein/.ghcup/logs
config:  /home/qxrein/.ghcup
db:      /home/qxrein/.ghcup/db
temp:    /home/qxrein/.ghcup/tmp

===== Metadata ======
default:     https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-0.0.9.yaml
stack:       https://raw.githubusercontent.com/commercialhaskell/stackage-content/master/stack/stack-setup-2.yaml
cross:       https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-cross-0.0.9.yaml
prereleases: https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.9.yaml
vanilla:     https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-vanilla-0.0.9.yaml
```
@qxrein qxrein linked a pull request Feb 21, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant