Make it easier to run lychee locally#18
Closed
Copilot wants to merge 2 commits into
Closed
Conversation
Co-authored-by: trask <218610+trask@users.noreply.github.com>
trask
reviewed
Jun 29, 2025
| max_retries = 6 | ||
| max_concurrency = 1 | ||
|
|
||
| # Check fragments in links |
Collaborator
There was a problem hiding this comment.
why did you include this comment?
Author
There was a problem hiding this comment.
You're right - I included an extra comment that wasn't in the original GitHub workflow. The original workflow only had the comment about excluding links for performance reasons. I've removed the unnecessary comment in 5b58f1a.
Copilot
AI
changed the title
[WIP] Make it easier to run lychee locally
Make it easier to run lychee locally
Jun 29, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR applies the changes from opentelemetry-java-instrumentation#14155 to make it easier to run lychee link checking locally.
Changes
Added
lychee.tomlwith minimal configuration matching the current GitHub workflow:max_retries = 6max_concurrency = 1include_fragments = trueexcludepattern for GitHub issues/PRs (adapted for opentelemetry-java-contrib)Created
.github/scripts/check-links.shscript for running lychee via Docker locallyGITHUB_TOKENenvironment variableCreated
.github/scripts/dependencies.dockerfilefor Renovate to auto-update lychee versionsUpdated workflow files:
reusable-markdown-link-check.ymlwithreusable-check-links.ymlbuild.ymlto reference the new workflow and job nameUsage
Developers can now run link checking locally with the same configuration as CI:
The script uses Docker to run lychee with the exact same version and configuration as the CI environment.
Fixes #17.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.