Repository navigation
fix(subscraping): use DialContext instead of the deprecated Dial - #1835
Conversation
golangci-lint reports SA1019 for net/http.Transport.Dial, deprecated since Go 1.7. Because Test Builds declares needs: [lint], that single finding fails the lint job and skips the build, test, race and example steps on every pull request. DialContext is the documented replacement and takes priority when both are set, so behaviour is unchanged. golangci-lint goes from 1 issue to 0 across the tree.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 6 remain after this review. Walkthrough
ChangesHTTP transport configuration
Estimated code review effort: 1 (Trivial) | ~2 minutes Merge Risk: ⚪ Minimal · up to This localized change replaces the deprecated dialing API so CI linting can run normally while preserving intended request behavior; no actionable merge-blocking risk remains beyond normal checks and review. Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
subfinder 2.16.0 Created-by: HarmonybrewBot Commit-by: HarmonybrewBot Merged-by: HarmonybrewBot Description: Created by `brew bump` --- Created with `brew bump-formula-pr`.<details> <summary>release notes</summary> <pre><!-- Release notes generated using configuration in .github/release.yml at main --> ## What's Changed * feat(sources): honor -max-results across paginating sources by @Gerijacki in projectdiscovery/subfinder#1810 * fix(extractor): match the target domain literally and reject partial hosts by @Gerijacki in projectdiscovery/subfinder#1811 * fix(subscraping): cap untrusted source response bodies with a size limit by @adamsjack711-ux in projectdiscovery/subfinder#1809 * fix(subscraping): use DialContext instead of the deprecated Dial by @jonaslejon in projectdiscovery/subfinder#1835 * feat: add scanmalware passive source by @jonaslejon in projectdiscovery/subfinder#1834 * fix(crtsh): set statement_timeout via SQL query to avoid PgBouncer handshake rejection (#1828) by @gcoinstash-cmd in projectdiscovery/subfinder#1832 ## New Contributors * @J12934 made their first contribution in projectdiscovery/subfinder#1823 * @adamsjack711-ux made their first contribution in projectdiscovery/subfinder#1809 * @gcoinstash-cmd made their first contribution in projectdiscovery/subfinder#1832 **Full Changelog**: https://github.com/projectdiscovery/subfinder/compare/v2.15.0...v2.16.0</pre> <p>View the full release notes at <a href="https://github.com/projectdiscovery/subfinder/releases/tag/v2.16.0">https://github.com/projectdiscovery/subfinder/releases/tag/v2.16.0</a>.</p> </details> <hr> See merge request: Harmonybrew/homebrew-core!17505
Proposed changes
golangci-lintreports one issue ondev:Test Buildsdeclaresneeds: [lint], so that single finding fails the lint job and skips thebuild, test, race-condition and example steps on every pull request. The effect is that PRs show a
red check with no green signal behind them, and the test suite does not run in CI at all.
DialContextis the documented replacement and takes priority when both are set, so behaviour isunchanged.
Proof
Reproducible on an unmodified checkout:
With this change:
Checklist
No test added: this is a two-line deprecation fix, and
golangci-lintin CI is the check thatproves it.
I noticed this while working on an unrelated PR (#1834) whose lint job inherits the same finding.
Sending it separately rather than folding it in there.
Summary by CodeRabbit