Skip to content

fix(website): emit the go-import meta before Material's inline scripts - #633

Merged
bpalermo merged 1 commit into
mainfrom
fix/go-import-meta-position
Aug 8, 2026
Merged

bpalermo merged 1 commit into
mainfrom
fix/go-import-meta-position

Conversation

@bpalermo

@bpalermo bpalermo commented Aug 8, 2026

Copy link
Copy Markdown
Owner

What

The live-fire test of proposal 035 failed:

$ GOPROXY=direct go mod download -json aethermesh.dev@main
"Error": "aethermesh.dev@main: unrecognized import path \"aethermesh.dev\": parsing aethermesh.dev: XML syntax error on line 49: expected element name after <"

Line 49 is Material's inline palette-bootstrap script — (e<<5) contains a raw <, and cmd/go's discovery parser is a lenient XML decoder, not an HTML parser. It aborts there, and forgives the abort only if a go-import tag was already collected. Ours rendered in extrahead, which Material emits after that script.

Fix

  • Move both meta tags to site_meta — the first block of <head> — ahead of {{ super() }}. Built pages now carry the meta at byte 67, before anything else.
  • verify_go_import now asserts position (meta before the first <script>) as well as presence and exact content, so this failure mode is build-fatal instead of discovered by go get.

Verified

  • //website:site_test passes; built tar inspected: meta precedes the first script on index.html, 404.html, and a deep docs page.
  • The end-to-end go mod download re-verification runs against the deployed site after this merges.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

'go mod download aethermesh.dev@main' with GOPROXY=direct failed:
  unrecognized import path: XML syntax error on line 49: expected element
  name after <

cmd/go parses the discovery page with a lenient XML decoder that dies at
the raw '<' in Material's inline palette script ('e<<5') — but forgives
the error if a go-import tag was already collected. The tag lived in
extrahead, which renders AFTER that script; move it to site_meta, the
first block of <head>, ahead of super().

verify_go_import now asserts position (meta before the first <script>)
as well as presence, so this exact failure mode is build-fatal.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
@bpalermo
bpalermo merged commit ca268d2 into main Aug 8, 2026
16 checks passed
@bpalermo
bpalermo deleted the fix/go-import-meta-position branch August 8, 2026 14:33
bpalermo added a commit that referenced this pull request Sep 15, 2026
Phase E1 of #772: correct every statement the stale-docs review found to be
factually wrong. Comment- and doc-only; no behaviour change, no Go code touched
outside doc comments.

Go package / declaration doc comments:

- agent/internal/meshdns/server.go:1-6 — "the node agent's in-process resolver
  ... answers <svc>.<meshDomain> ... and forwards everything else to the upstream
  resolver (kube-dns)" → the name shape is <svc>.<ns>.<meshDomain> (proposal 020;
  the same file answers the flat form NODATA at :726), and upstream forwarding
  belongs to the standalone agent/cmd/mesh-dns daemon (#578/#583), not the agent.
- agent/internal/gamma/reconciler.go:1-5 — "watches HTTPRoutes ... projects into
  the outbound routing" → also GRPCRoute, ReferenceGrant and HTTPFilter, and the
  projection feeds the capture (cap_http) path as well as outbound.
- common/constants/annotations/annotations.go:23 — "REQUIRES the agent
  --capture-redirect-all flag" → that flag was retired by proposal 031; the
  passthrough chain is always rendered and redirect-all is the managed-pod
  default. (The old text made a working feature read as unusable.)
- controller/internal/podmutate/mutator.go:14 — "ndots is opt-in (default off)"
  → the chart ships it ON (controller.injectPodNdots: true). Also :2 "does two
  things" → three (it lists three bullets).
- agent/internal/xds/cache/cache.go:268 — "Empty unless --l4-routes is enabled"
  → gated on the TCPRoute CRD being installed (flag retired by 031).
- agent/internal/xds/proxy/l4route.go:173 — "when --l4-routes is enabled" → the
  CNI UDP redirect is unconditional; the listener exists only when UDPRoute
  backends do.
- registry/internal/k8s/kubernetes.go:103 — "HTTP/h2 over :15008" → :18008
  (proposal 030); :108 — "true for etcd/ddb" → "true for etcd" (the DynamoDB
  backend was removed in #760).
- registry/registry.go:3 — "(e.g., etcd)" → names the three real backends
  (Kubernetes, etcd, registrar).

Proposal status lines:

- docs/proposals/035_vanity-import-path.md:3 — "Accepted ... the module rename is
  the follow-up PR and is gated on the meta being live" → Implemented; go.mod is
  already `module aethermesh.dev` (#631-#633) and every import uses it.
- docs/proposals/021_per-gateway-addressing.md:3 — "is the default
  (edge.perGatewayAddressing=true)" → unconditional; that chart value was deleted
  by proposal 031, so an operator --setting it gets a no-op.

CLAUDE.md / AGENTS.md:

- CLAUDE.md:11 — "Go 1.26.x" → Go 1.27.x (MODULE.bazel:43 go_sdk.download =
  1.27.1; README.md and AGENTS.md already said 1.27.1). Same line now records
  nogo, which runs as a build-time validation action on every Go target.
- CLAUDE.md:38 — notes that `make deps-audit` is also the required `deps-audit`
  CI job.
- CLAUDE.md:61 — "### Binaries (under `cmd/`)" → there is no top-level cmd/;
  states the real layout (agent/cmd, cni/cmd, registrar/cmd, controller/cmd,
  prober/cmd).
- AGENTS.md:26 — mirrors the nogo note.
- AGENTS.md:81 — "SPIRE integration enabled by default" → true for agent and
  registrar; the controller's --spire-enabled defaults to false.

Other docs:

- charts/README.md:26 — the proxy image is digest-pinned too (tag + digest, and
  the aether.image helper prefers the digest).
- charts/README.md:46 — prober chart 0.2.0 → 0.3.0, and the hard-coded aether
  chart version (0.92.4, now 0.92.18) replaced by a `<version>` placeholder plus
  a pointer to Chart.yaml / the publish workflow output.
- charts/README.md:88-91 — the copy-pasteable `helm install --version
  0.92.4-<git-commit>` (14 chart versions stale) replaced with
  `<aether-version>`/`<crds-version>` placeholders and an explicit "do not copy a
  version out of this file". Chose placeholders over a fresh literal so the one
  file whose job is "how to install" cannot go stale again.
- charts/README.md:116-124 — image table was missing the prober and proxy images.
- docs/observability/README.md:12-20 — the mesh-DNS alert table listed 7 of the 8
  alerts in mesh-dns-alerts.yml; added MeshDNSForwardConnsRecyclingOnError (#674).
- proxy/README.md:55 — proxy.yml is the PR check; the release path is
  proxy-release.yml (multi-arch push + automated chart pin PR, #703/#727), which
  the file never mentioned.
- docs/conformance/gateway-api-features.md:11 — "e2e-validated on talos (aether
  0.41.0)" read as never-revalidated; now says first validated at 0.41.0, carried
  since (0.92.x), with the e2e.yaml conformance jobs as the standing gate.
- docs/runbook.md:528-529 — `spire.NotReadyDwell` / `spire.ServiceNotReadyDwell`
  are Go constants, not values.yaml paths; the notation said otherwise.

charts/README.md sits outside any charts/<name>/ directory, so no Chart.yaml bump
is required (and none of the chart directories are touched).

Not done here (Phase E2, "document what shipped"): the prober CLI section,
--lame-duck-max, --spire-wait-warn-after, the edge.config.* value table, and the
CLAUDE.md/AGENTS.md package/binary additions. Proposal 032's v1.6.1-vs-v1.6.2
mention is left alone: the proposal is historical and the report marked it skip.

Verification: bazel build //... //test/e2e:e2e_test; bazel test //...
--test_output=errors (98 pass); bazel run //:format.check; bazel build
--config=lint --@aspect_rules_lint//lint:fail_on_violation //...; bazel run
//:gazelle (no churn); bazel test //website:all (site_test PASSED — docs feed the
site); scripts/go-deps-audit.sh exit 0.


Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

Co-authored-by: Claude Fable 5.1 <[email protected]>
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