Skip to content

fix(organizations): domain-lists update names each host once - #3362

Merged
leemour merged 1 commit into
mainfrom
fix/domain-lists-hosts
Nov 25, 2026
Merged

leemour merged 1 commit into
mainfrom
fix/domain-lists-hosts

Conversation

@leemour

@leemour leemour commented Nov 25, 2026

Copy link
Copy Markdown
Member

Task

Follow-up to #3359, found by running domain-lists update against the first published pack (release domain-lists-2026-11-25).

Why

hostFetch refuses a host list that names a host twice. The manifest URL and every release asset are on github.com, which was also in the fixed release hosts, so every real update stopped with "github.com" is listed twice. The tests inject fetch, so they never built the host list.

What

packHosts builds the list with each host once; both hostFetch calls use it.

Testing

  • New unit test for packHosts.
  • Real run from the built package into a throwaway folder: all five sources installed (UT1 sectors 802,669 lines, UT1 webmail 189, UT1 bad 260,838, FDIC 4,090, Stop Forum Spam 87,188 fetched from its source); lookups gave pokerstars.com gaming_gambling, amazon.fr shop, bankofamerica.com bank, and laposte.net free mail.
  • typecheck, biome, the domain-lists tests.

🤖 Generated with Claude Code

hostFetch refuses a host list with a repeat, and the manifest's own host and its
release assets are all github.com, so every real update failed before it
started. Found running the update against the first published pack.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@leemour
leemour merged commit b4d1201 into main Nov 25, 2026
40 of 41 checks passed
@leemour
leemour deleted the fix/domain-lists-hosts branch November 25, 2026 21:02
leemour added a commit that referenced this pull request Nov 25, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant