-
Notifications
You must be signed in to change notification settings - Fork 201
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
fix: move resource generation out from onLoad #1708
Conversation
687516d
to
e71dc1b
Compare
@dos65 so this will run generate files lazily? |
Kind of. Probably not perfect, in this case they will be generated at the moment of computing test resources that is part of import-build. I can move their generation into
I'm not familiar fully with all these aspects. My plan was to check that |
So, the best part, I wonder if adding a similar trick to these modules will be good enough? |
These project that you mentioned depends on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These project that you mentioned depends on frontend including its test axis.
No additional changes is needed.
Ok, you're right. Awesome!
Few nitpicks, but it looks good!
project/BuildPlugin.scala
Outdated
baseDir: File, | ||
log: Logger, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
format
project/BuildPlugin.scala
Outdated
@@ -322,7 +323,7 @@ object BuildImplementation { | |||
BuildKeys.schemaVersion := "4.2-refresh-3", | |||
(Test / Keys.testOptions) += sbt.Tests.Argument("-oD"), | |||
Keys.onLoadMessage := Header.intro, | |||
Keys.onLoad := BuildDefaults.bloopOnLoad.value, | |||
//Keys.onLoad := BuildDefaults.bloopOnLoad.value, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
leftover
project/BuildPlugin.scala
Outdated
val exitGenerate = Process(cmd, projectDir).! | ||
if (exitGenerate != 0) | ||
throw new sbt.MessageOnlyException( | ||
s"Failed to generate bloop config for ${projectDir}." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s"Failed to generate bloop config for ${projectDir}." | |
s"Failed to generate bloop config for resource project: ${projectDir}." |
e71dc1b
to
5e1596e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works like a charm!
No description provided.