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

Link check failing for PR previews on newly added assets #874

Open
atteggiani opened this issue Jan 30, 2025 · 0 comments
Open

Link check failing for PR previews on newly added assets #874

atteggiani opened this issue Jan 30, 2025 · 0 comments
Labels
🪲 bug / mistake Something isn't working, is misplaced, or misspelt

Comments

@atteggiani
Copy link
Contributor

Overview

The check-links workflow always fail within a PR, when there are new files added, for example, in the assets folder and referenced in the text as links.

The reason is that the link checker's base directory is set to https://access-hive.org.au/:

base = "https://access-hive.org.au/"

So, for a link to a file referenced as /assets/path/to/the/file.png, the link checker will search for the address https://access-hive.org.au/assets/path/to/the/file.png.
However, https://access-hive.org.au/ is the main website and if the file was added to a PR, it is still not present in the main website.
This means the link-checker will always fail.

Solution

I don't have an easy fix at the moment.
Maybe we should better check lychee's configuration options, and find a way to differentiate absolute URLs from relative ones.

@atteggiani atteggiani added the 🪲 bug / mistake Something isn't working, is misplaced, or misspelt label Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪲 bug / mistake Something isn't working, is misplaced, or misspelt
Projects
None yet
Development

No branches or pull requests

1 participant