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 docc archive bugs #2595

Merged
merged 8 commits into from
Nov 13, 2024

Conversation

AttilaTheFun
Copy link
Contributor

@AttilaTheFun AttilaTheFun commented Nov 13, 2024

This PR builds upon and fixes @luispadron 's draft PR:
#2583

Which fixes #2582

docc preview supports previewing with or without a .docc bundle. There were some issues in the argument handling of the template script that stopped this from working when no bundle was provided. This fixes it and additionally fixes the following warning:

warning: '--index' is deprecated. Use '--emit-lmdb-index' indead.
docc preview will emit a json representation by default and we do not need the lmdb index afaict.

Additionally, previously the files within a .docc directory were not included as inputs to the action, so it would not be properly invalidated if you changed the directory contents.

This PR includes all of the files within the data attribute under the .docc directory.

@AttilaTheFun AttilaTheFun force-pushed the lshire-fix-docc-archive branch from 66fe215 to e99d2df Compare November 13, 2024 01:12
@AttilaTheFun AttilaTheFun changed the title Lshire fix docc archive Fix docc archive bugs Nov 13, 2024
@AttilaTheFun AttilaTheFun marked this pull request as ready for review November 13, 2024 01:17
Copy link
Contributor

@luispadron luispadron left a comment

Choose a reason for hiding this comment

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

Thank you!

test/docc_archive_test.sh Outdated Show resolved Hide resolved
apple/internal/docc.bzl Outdated Show resolved Hide resolved
@luispadron luispadron merged commit af02ac9 into bazelbuild:master Nov 13, 2024
8 checks passed
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.

bazel run fails for docc_archive targets with a swift_library dep which does not have a docc bundle
2 participants