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

Allow to install a list of versions #1178

Open
hasufell opened this issue Dec 20, 2024 · 5 comments
Open

Allow to install a list of versions #1178

hasufell opened this issue Dec 20, 2024 · 5 comments

Comments

@hasufell
Copy link
Member

No description provided.

@dfordivam
Copy link
Collaborator

Just to clarify this means the following should install both versions right?
And it should fail if ghcup cannot install any one of them.

ghcup install ghc 9.6.6 9.8.4

@dfordivam
Copy link
Collaborator

dfordivam commented Dec 27, 2024

As the install command also supports CONFIGURE_ARGS, without any use of --, the versions cannot be specified as space separated.
This is difficult to parse as two separate versions, followed by config args.
ghcup install ghc 9.8.10 9.8.8 -- --config-args
Currently this will pass "9.8.8" and "--config-args" both to config.

Perhaps comma separated list would work
ghcup install ghc 9.8.10,9.8.8 -- --config-args

@dfordivam
Copy link
Collaborator

The installation of multiple versions will typically need to happen only for ghc, and -u, -i and --set will be incompatible/error if multiple versions are specified.

@hasufell
Copy link
Member Author

The installation of multiple versions will typically need to happen only for ghc, and -u, -i and --set will be incompatible/error if multiple versions are specified.

Why would -i be incompatible? --set is also fine... the last version will "win".

-u may need smarter parsing, but I think it should be possible with optparse.

@hasufell
Copy link
Member Author

As the install command also supports CONFIGURE_ARGS, without any use of --, the versions cannot be specified as space separated.

I think there's no way to only allow something as longopts only, is there?

@hasufell hasufell removed this from the 0.1.40.0 milestone Dec 30, 2024
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

2 participants