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

add [sbt-test] [java-codegen-app] #35

Merged

Conversation

sullis
Copy link
Contributor

@sullis sullis commented Nov 17, 2019

Contributing to Twilio

All third-party contributors acknowledge that any contributions they provide will be made under the same open-source license that the open-source project is provided under.

  • I acknowledge that all my contributions will be made under the project's license.

@blast-hardcheese blast-hardcheese merged commit a12a438 into guardrail-dev:master Nov 18, 2019
@sullis sullis deleted the sbt-test-java-codegen-app branch November 18, 2019 02:33
)

// workaround for SBT issue. see: https://github.com/sbt/sbt/issues/1664
unmanagedSourceDirectories in Compile += (sourceManaged in Compile).value

Choose a reason for hiding this comment

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

Should this be managedSourceDirectories in Compile?

Copy link
Member

Choose a reason for hiding this comment

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

I don't have context on why this construct was chosen, but as managed seems to be the way to go, considering the linked issue, probably yes.

As this is just in the scripted tests, I wonder what the actual impact is -- maybe accumulating cruft when folks run the scripted tests locally?

Choose a reason for hiding this comment

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

The reason I questioned it is because I saw it from the linked issue and it confused me as I was trying to figure out what to do in my own project. I wanted to make sure there wasn't a reason for doing it this way

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, I saw your contribution to the thread -- I must admit I don't really understand the distinction myself. I'm really only drawn into sbt-guardrail when something actively breaks, as there's still much to do in the primary repo.

Looking at sbt/sbt#4654, it seems as though managedSourceDirectories really is the correct thing to do, though due to the simplicity of these tests (not integrating with any other plugins) I don't think there's a huge material difference to these tests.

Choose a reason for hiding this comment

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

Yeah, I hadn't realized this was test code, but as long as the tests are passing it doesn't matter. For reference, "managed" means it's generated code whereas "unmanaged" is just regular user-written code

Copy link
Member

Choose a reason for hiding this comment

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

In that case, it should be changed for correctness, thanks for bringing it up!

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.

None yet

3 participants