Etcm 52 make sure mantis works on windows#671
Conversation
8ba58a3 to
661d333
Compare
ntallar
left a comment
There was a problem hiding this comment.
Both running Mantis from sbt dist or sbt run worked on my machine! (it's a linux machine)
| trait SecureRandomBuilder { | ||
| lazy val secureRandom: SecureRandom = | ||
| Config.secureRandomAlgo.map(SecureRandom.getInstance).getOrElse(new SecureRandom()) | ||
| Config.secureRandomAlgo.flatMap(name => Try(SecureRandom.getInstance(name)).toOption).getOrElse(new SecureRandom()) |
There was a problem hiding this comment.
Doesn't this hide the fact that the selected algorithm is available and other one is instead being used?
There was a problem hiding this comment.
If I add logging about algorithm non available, will it be sufficient?
There was a problem hiding this comment.
Yes, given our current handling of config errors I think that with logging with error will be enough here
KonradStaniec
left a comment
There was a problem hiding this comment.
I had run mantis on macos, from pre-exsiting database and it seems to work fine. @kapke did you check it on windows ?
|
I did, whole PR was prepared on Windows machine |
6a08ed2 to
811f3d7
Compare
952a4f9 to
02510ad
Compare
02510ad to
f270dac
Compare
ntallar
left a comment
There was a problem hiding this comment.
LGTM!
.\\ //.
. \ \ / /.
.\ ,\ /` /,.-
-. \ /'/ / .
` - `-' \ -
'. /.\`
- .-
:`//.'
.`.'
.' BP
Description
This PR fixes issues found when trying to run Mantis on Windows, that is:
.batfilesSecureRandominstance is obtainedTesting
All tests,
sbt distand syncing from both sbt and dist package should work