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

g8Test uses other code path than actual template application #334

Open
jrudolph opened this issue Aug 14, 2017 · 2 comments
Open

g8Test uses other code path than actual template application #334

jrudolph opened this issue Aug 14, 2017 · 2 comments

Comments

@jrudolph
Copy link

jrudolph commented Aug 14, 2017

It seems that g8Test uses another code path than actually using the command line tool or sbt new to apply a template. With the tool / sbt new template generation can fail fatally for issues like #333. Using g8Test it works because there's a fallback defined that falls back to copying the template verbatim if actually running the ST template fails. That makes it really hard to test template generation in CI.

It seems the difference is in using G8.applyT version G8.apply.

Observed here: akka/akka-http-quickstart-scala.g8#15

@ddworak
Copy link

ddworak commented Sep 2, 2019

+1, we've been hit by this bug too: UdashFramework/udash.g8#14

@alessandrocandolini
Copy link

is there any workaround to disable the fallback option?

g8Test command is not as helpful as it could be if it cannot report issues like An unexpected error occurred while processing the template. Check that all literal '$' are properly escaped with '\$' (which are not that unlikely to happen and which would break the template)

To stay safer, atm i'm manually running sbt new .. as part of the ci, instead of relying on g8Test but it would be great if it were possible to use g8Test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants