-
Notifications
You must be signed in to change notification settings - Fork 84
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: use custom HTTP server #265
Conversation
@XhmikosR this is handling everything I've tested it with, including bootstrap. Could I trouble you to give this a shot, and make sure everything looks right? It's a bit of a scary change 😆 |
I checked out the branch, built it and replaced the local linkinator I had and it seems to work. Nice job! # 2.11.2
C:\Users\xmr\Desktop\bootstrap>npm run docs-linkinator
> bootstrap@5.0.0-beta1 docs-linkinator C:\Users\xmr\Desktop\bootstrap
> linkinator _gh_pages --recurse --silent --skip "^(?!http://localhost)"
🏊♂️ crawling _gh_pages
🤖 Successfully scanned 705 links in 2.981 seconds.
# this branch
C:\Users\xmr\Desktop\bootstrap>npm run docs-linkinator
> bootstrap@5.0.0-beta1 docs-linkinator C:\Users\xmr\Desktop\bootstrap
> linkinator _gh_pages --recurse --silent --skip "^(?!http://localhost)"
🏊♂️ crawling _gh_pages
🤖 Successfully scanned 705 links in 3.006 seconds.
C:\Users\xmr\Desktop\bootstrap> It feels like reinventing the wheel as long as it works fine :) PS.
|
Sweet. Looking at these:
Yeah I ran these on my windows machine, and the CLI tests just randomly will take 5 seconds to spawn a process. I have no idea what to do here, but I don't think this is new.
Done in the latest build
lol good call, done
So I thought about this, and no! The crawler caches all responses once it visits a url, so there's no way that you would need to load the same file twice. The cache would never actually get used - one of the many things in a normal static web server that I think it's easy to leave out here, because the only client for these requests will ever be gaxios/linkinator |
🎉 This PR is included in version 2.13.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Yeah, I wasn't sure if it was needed either, just thought I'd mention it :) One last thing, it seems this PR introduces a few further CodeQL issues. Not sure if all apply since I don't see all the details yet (when LGTM runs, I should be able to see them, but I don't have access to the security tab). One of them should be easy to fix by escaping any characters like you do elsewhere. |
Not quite ready for primetime yet. Fixes #233.