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

compile-only cannot be used in combination with reset #767

Open
adpi2 opened this issue May 3, 2023 · 2 comments
Open

compile-only cannot be used in combination with reset #767

adpi2 opened this issue May 3, 2023 · 2 comments

Comments

@adpi2
Copy link
Member

adpi2 commented May 3, 2023

mdoc:compile-only:reset should be valid but it fails with

compile-only cannot be used in combination with reset 

Same for mdoc:compile-only:nest.

@adpi2
Copy link
Member Author

adpi2 commented May 3, 2023

} else if (mod.isCompileOnly) {
val others = mod.mods - Mod.CompileOnly
if (others.isEmpty) {
true
} else {
val all = others.map(_.toString.toLowerCase).mkString(", ")
invalid(
info,
s"""compile-only cannot be used in combination with $all"""
)
false
}

@tgodzik
Copy link
Contributor

tgodzik commented May 4, 2023

Thanks for reporting! I am not sure why it's disallowed actually. We might want to remove that condition, but we would probably need to add some tests.

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

No branches or pull requests

2 participants