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

Ensure --version passed to the default command works with --offline #3207

Merged

Conversation

Gedochao
Copy link
Contributor

@Gedochao Gedochao commented Sep 25, 2024

https://discord.com/channels/632150470000902164/901153021638082660/1288154845907517480
and also #3123 (comment)
TL;DR --version passed together with --offline to the default command still checked for the latest version of the CLI, as the --offline that was being parsed was tied to coursier, and not version.

scala-cli --version --offline --power

What's funny, the 2 different --offline options have different spec levels, so this particular usage requires --power mode until a proper fix is in place.

It's sort of a quick & dirty fix for now, need to unify --offline across the different sub-commands as a follow-up (but that's a larger refactor).
kudos to @kubukoz for spotting the problem.

…line` doesn't look for the latest version online
@Gedochao Gedochao enabled auto-merge (squash) September 25, 2024 10:17
@Gedochao Gedochao merged commit 646e2be into VirtusLab:main Sep 25, 2024
52 of 54 checks passed
@Gedochao Gedochao deleted the maintenance/default-version-offline branch September 26, 2024 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants