Skip to content

CHORE: Update old Go module path in flattener.js#4262

Merged
TomOnTime merged 1 commit into
DNSControl:mainfrom
cafferata:chore/flattener-package-path
May 14, 2026
Merged

CHORE: Update old Go module path in flattener.js#4262
TomOnTime merged 1 commit into
DNSControl:mainfrom
cafferata:chore/flattener-package-path

Conversation

@cafferata
Copy link
Copy Markdown
Member

The SPF flattener web tool (docs/flattener/) is compiled from Go to JavaScript using GopherJS. The compiled output flattener.js still contains the old Go module path github.com/StackExchange/dnscontrol/v4 from before the repository migration. The source file js.go already uses the correct github.com/DNSControl/dnscontrol/v4 path, but the compiled JavaScript was never regenerated.

This replaces all 9 occurrences of the old path in the GopherJS package registry and type metadata with a single sed command:

sed -i 's|github.com/StackExchange/dnscontrol/v4|github.com/DNSControl/dnscontrol/v4|g' docs/flattener/flattener.js

The source map (flattener.js.map) contained no old paths and required no changes.

Verified by opening docs/flattener/index.html in a browser and performing a lookup.

Closes #4219.

- Replace `github.com/StackExchange/dnscontrol/v4` with `github.com/DNSControl/dnscontrol/v4` in the compiled GopherJS output.
@cafferata cafferata requested a review from TomOnTime as a code owner May 14, 2026 18:27
@TomOnTime TomOnTime merged commit 7887ffd into DNSControl:main May 14, 2026
10 checks passed
@cafferata cafferata deleted the chore/flattener-package-path branch May 15, 2026 04:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Fix flattener (broken by repo name changeg)

2 participants