Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@julienrf
Copy link
Collaborator

Tested locally:

$ ./mill cli.run update dummy-app-id
[504/504] cli.run
Cannot find installed application 'dummy-app-id' (installation directory is /home/julien/.local/share/coursier/bin).
Try running 'cs install dummy-app-id'.

Fixes #2661

Tested locally:

~~~ text
$ ./mill cli.run update dummy-app-id
[504/504] cli.run
Cannot find installed application 'dummy-app-id' (installation directory is /home/julien/.local/share/coursier/bin).
Try running 'cs install dummy-app-id'.
~~~

Fixes coursier#2661
info.withAppDescriptor(info.appDescriptor.withNameOpt(Some(name)))
}
writtenOpt <-
if (Files.exists(launcher))
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the important change (the content of the “then-branch” is an exact copy of what we had before). Now, before we try to read the source, we check if the file exists. In case that file does not exist, we immediately return Some(false).

@julienrf julienrf merged commit 56c3d79 into coursier:main Mar 23, 2023
@julienrf julienrf deleted the fix-update branch March 23, 2023 08:50
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.

'cs update foo' fails with an unhelpful message

2 participants