Make it easier to run lychee locally #24
Closed
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 PR #14155 to make it easier to run lychee link checking locally.
Changes Made
New Files Added
.lychee.toml- Centralized configuration file with proper timeouts, retries, and exclusions specific to the contrib repository.github/scripts/check-links.sh- Executable script that runs lychee via Docker with proper configuration.github/scripts/dependencies.dockerfile- Manages lychee Docker image version to enable Renovate auto-updatesFiles Modified
.github/workflows/reusable-markdown-link-check.yml- Updated to use the new script approach instead of lychee-action.github/workflows/build.yml- Updated job name frommarkdown-link-checktocheck-linksto match new workflowBenefits
For Contributors
./.github/scripts/check-links.shto check links locally before submitting PRs.lychee.tomlFor Maintainers
Usage
Contributors can now easily test link checking locally:
The script automatically:
.lychee.tomlFixes #23.
Warning
Firewall rules blocked me from connecting to one or more addresses
I tried to connect to the following addresses, but was blocked by firewall rules:
activemq.apache.org/usr/local/bin/lychee --verbose --config .lychee.toml .(dns block)api.scorecard.dev/usr/local/bin/lychee --verbose --config .lychee.toml .(dns block)/usr/local/bin/lychee --config .lychee.toml README.md(dns block)app.fossa.com/usr/local/bin/lychee --verbose --config .lychee.toml .(dns block)/usr/local/bin/lychee --config .lychee.toml README.md(dns block)cassandra.apache.org/usr/local/bin/lychee --verbose --config .lychee.toml .(dns block)central.sonatype.com/usr/local/bin/lychee --verbose --config .lychee.toml .(dns block)cloud-native.slack.com/usr/local/bin/lychee --verbose --config .lychee.toml .(dns block)/usr/local/bin/lychee --config .lychee.toml README.md(dns block)cloud.google.com/usr/local/bin/lychee --verbose --config .lychee.toml .(dns block)contrib.rocksdeveloper.mend.io/usr/local/bin/lychee --verbose --config .lychee.toml .(dns block)docs.aws.amazon.com/usr/local/bin/lychee --verbose --config .lychee.toml .(dns block)docs.cloudfoundry.org/usr/local/bin/lychee --verbose --config .lychee.toml .(dns block)docs.groovy-lang.org/usr/local/bin/lychee --verbose --config .lychee.toml .(dns block)docs.jboss.org/usr/local/bin/lychee --verbose --config .lychee.toml .(dns block)docs.oracle.com/usr/local/bin/lychee --verbose --config .lychee.toml .(dns block)en.wikipedia.org/usr/local/bin/lychee --verbose --config .lychee.toml .(dns block)groovy-lang.org/usr/local/bin/lychee --verbose --config .lychee.toml .(dns block)hadoop.apache.org/usr/local/bin/lychee --verbose --config .lychee.toml .(dns block)hbase.apache.org/usr/local/bin/lychee --verbose --config .lychee.toml .(dns block)img.shields.io/usr/local/bin/lychee --verbose --config .lychee.toml .(dns block)kafka.apache.org/usr/local/bin/lychee --verbose --config .lychee.toml .(dns block)opentelemetry.io/usr/local/bin/lychee --verbose --config .lychee.toml .(dns block)plugins.jenkins.io/usr/local/bin/lychee --verbose --config .lychee.toml .(dns block)scorecard.dev/usr/local/bin/lychee --verbose --config .lychee.toml .(dns block)/usr/local/bin/lychee --config .lychee.toml README.md(dns block)semver.org/usr/local/bin/lychee --verbose --config .lychee.toml .(dns block)solr.apache.org/usr/local/bin/lychee --verbose --config .lychee.toml .(dns block)tmp/usr/local/bin/lychee --config .lychee.toml /tmp/test-links.md(dns block)www.eclipse.org/usr/local/bin/lychee --verbose --config .lychee.toml .(dns block)www.jaegertracing.io/usr/local/bin/lychee --verbose --config .lychee.toml .(dns block)If you need me to access, download, or install something from one of these locations, you can either:
💡 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.