Skip to content

Migrate link checking from local scripts to flint #2653

@zeitlinger

Description

@zeitlinger

Context

The other OTel Java repos have been migrated to use flint for link checking (consolidated, SHA-pinned mise task) instead of the 3 scripts in .mise/tasks/lint/:

What to do in contrib

Since this repo hosts the original scripts in .mise/tasks/lint/, the migration is slightly different:

  1. mise.toml: Replace the local lint:links, lint:local-links, and lint:links-in-modified-files task definitions with a single remote flint task (same as the other repos)
  2. .github/workflows/reusable-link-check.yml: Simplify to the flint pattern (env vars + mise run lint:links / mise run lint:links --full)
  3. .github/config/lychee.toml: Remove the lychee#1729 remap workaround (flint handles it at runtime)
  4. .github/renovate.json5: Add the flint custom manager for automatic SHA bumps
  5. .mise/tasks/lint/: Keep markdown.sh (still used). Remove links.sh, local-links.sh, and links-in-modified-files.sh since no repo references them anymore

Note

The shell scripts in .mise/tasks/lint/ should only be removed after the PRs in the other repos are merged, so nothing breaks during the transition.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions