catalogfetch

command
v1.0.297 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2026 License: MIT Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command catalogfetch performs an HTTP GET of a release-catalog object using the SAME client shape the production catalog fetcher uses (release_catalog_http.go): HTTP/2 attempted and a self-identifying User-Agent.

Why this exists instead of curl: the live catalog origin (catalog.culvertlabs.com) is fronted by Cloudflare bot management, which fingerprints the TLS/HTTP2 client — NOT just the User-Agent header — and 403s curl even when curl sends the matching UA (two prior CI fixes added the UA and dropped Cache-Control and it still 403'd). The Go net/http client's fingerprint is accepted; it is the known-good shape TestServedVerify_BakedRootGate already relies on. CI convergence/confirm checks therefore fetch through this tool.

Usage:

go run ./cmd/catalogfetch [-raw] [-timeout 30s] <url>

Prints the lowercase-hex SHA-256 of the response body (matching `sha256sum | awk '{print $1}'`), or the raw body with -raw. Exits non-zero on a transport error or any non-200 status, so a caller can guard with `|| VAR=""`.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL