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

Ignore missing / broken link warning does not seem to work in newer sbt versions #7482

Open
AndyLeGrand opened this issue Jan 26, 2024 · 1 comment

Comments

@AndyLeGrand
Copy link

We've recently switched from sbt 1.6.2 to 1.9.8. Our build workflows now fail due to missing / broken link errors when doing something like [[SomeClass]] in scala doc.
In sbt 1.6.2. this could be fixed / ignored by setting "-no-link-warnings" and scoping to doc / scalaOptions. However this setting does not seem to take effect anymore on sbt 1.9.8.
Is this an intended change? If so, there is no documentation available on this in the scaladoc section.

@AndyLeGrand
Copy link
Author

After some further testing, we found that newer versions still respect this setting, but required scoping to be done a bit different:
sbt 1.6.2. (accepts doc / scalacOptions := Seq( .... "-no-link-warnings"), sbt 1.9.8: requires scoping to Compile / doc / scalacOptions. In any case it would be nice to add a hint regarding this option and how to use it to the Scaladoc section of the docs

@eed3si9n eed3si9n transferred this issue from sbt/website Jan 26, 2024
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

1 participant