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

Fix trailing SBT args and add tests #651

Merged
merged 4 commits into from
Sep 27, 2023
Merged

Fix trailing SBT args and add tests #651

merged 4 commits into from
Sep 27, 2023

Conversation

keynmol
Copy link
Contributor

@keynmol keynmol commented Sep 25, 2023

Closes #650

Test plan

  • New test added

@keynmol keynmol marked this pull request as ready for review September 25, 2023 10:20
@@ -43,8 +43,14 @@ class SbtBuildTool(index: IndexCommand) extends BuildTool("sbt", index) {

private def unconditionallyGenerateScip(): Int =
Using.resource(sourcegraphSbtPluginFile()) { _ =>
val buildCommand =
if (index.buildCommand.isEmpty)
List("sourcegraphScip")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@olafurpg what's the approach to custom build commands?

sourcegraphScip only produces the SCIP file itself, do we leave it as the last command anyways, or expect the user to add it in if they need the SCIP index as well?

Copy link
Member

Choose a reason for hiding this comment

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

To mirror the Maven/Gradle behavior, the user should only provide commands to compile the codebase to generate SemanticDB

@keynmol keynmol requested a review from olafurpg September 25, 2023 14:34
@keynmol keynmol merged commit 36c9a11 into main Sep 27, 2023
10 checks passed
@keynmol keynmol deleted the fix-sbt-trailing-args branch September 27, 2023 13:35
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.

trailing arguments doesn't work for sbt projects
3 participants