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

Don't fail in builds of single sbt plugins #689

Merged
merged 1 commit into from
Oct 22, 2018
Merged

Conversation

jvican
Copy link
Contributor

@jvican jvican commented Oct 22, 2018

I knew about the possibility of failing in builds of single sbt plugins,
but however didn't protect us against them because I hoped sbt would
expose an entry point to know for real if a project is a meta build or
not. As this hasn't been the case, I've implemented a simple heuristic
to know whether a build is a meta-project or not: check if the cwd is
the same as the root of the build.

Kudos to @olafurpg for finding this bug in sbt-scalafix.

I knew about the possibility of failing in builds of single sbt plugins,
but however didn't protect us about them because I hoped sbt would
expose an entrypoint to know for real if a project is a meta build or
not. As this hasn't been the case, I've implemented a simple heuristic
to know whether a build is a meta-project or not: check if the CWD is
the same as the root of the build.
@jvican jvican added bug A defect or misbehaviour. build sbt labels Oct 22, 2018
@jvican jvican merged commit 187b7ca into master Oct 22, 2018
@tgodzik tgodzik deleted the topic/bsp-sbt-build branch September 7, 2021 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A defect or misbehaviour. build sbt
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant