Skip to content

v1.2.0

Choose a tag to compare

@github-actions github-actions released this 28 Jul 01:24
· 50 commits to main since this release

Added

  • Directory sources for the file handler: pointing source.path at a directory (auto-detected)
    recreates the whole tree under target, with an aggregate dirsha256: fingerprint and
    deletion tracking so files removed upstream are removed from target too, without touching
    anything else already living there (closes #8).
  • --timeout and --concurrency flags for both check and fetch. --timeout (default 5m)
    bounds the entire run via context.Context so a hung source can't block the process forever;
    --concurrency (default 1) processes datasets in parallel while keeping output in the
    original config-file order regardless of completion order.
  • --version flag, printing the build's version (set via -ldflags -X main.version=... in
    release builds; local go build binaries report dev).
  • Docker-based integration test suite (test/integration/, run via
    scripts/test-integration.sh) exercising the git handler against a real git-over-SSH server -
    covering the real SSH transport and host-key verification behavior that in-process unit tests
    can't reach. scripts/sandbox.sh brings up the same server as a persistent, manually
    resettable sandbox (up / down / reset / status) for trying datum against it by hand,
    with a ready-made test/integration/sandbox.data.yaml.
  • Documentation site under docs/, published via GitHub Pages
    (.github/workflows/pages.yml) - installation, configuration, commands, handlers, examples,
    tool comparison, and architecture/development pages with real navigation and search. The
    README is now a shorter landing page linking out to it instead of holding everything inline.
  • Release automation: pushing a VERSION bump to main tags and publishes a GitHub Release via
    goreleaser (.goreleaser.yml, .github/workflows/tag-release.yml +
    .github/workflows/release.yml), with cross-compiled binaries for Linux/macOS/Windows
    (amd64+arm64), checksums, and this changelog's matching section as release notes.

Fixed

  • Security: the git handler's SSH auth no longer unconditionally disables host-key
    verification. It now uses go-git's secure default (verifying against known_hosts) unless
    DATUM_GIT_INSECURE_HOST_KEY=1 is explicitly set.
  • Correctness: git tag refs (ref: v1.0.0) were silently unresolvable due to dead fallback
    logic in resolveRefCommit - a bare ref was always pre-normalized to a branch ref before the
    tag-fallback check could ever run. Only branch refs were exercised by the existing example/CI
    coverage, so this went unnoticed.
  • Correctness: the command handler's custom environment variables (fetch_cmd,
    fingerprint_cmd) were replacing the entire child process environment instead of extending it,
    silently wiping PATH/HOME/etc. and breaking any command that wasn't a shell builtin.
  • Check's update policy no longer silently keeps a stale fingerprint when a fetch succeeds but
    the immediate post-fetch re-fingerprint fails; it's now treated as a failed attempt (matching
    fetch's existing behavior), so the next source is tried instead.
  • writeLock now creates its lockfile's parent directory if it doesn't exist yet, matching every
    handler's own file-write path - a fresh --lock path pointing into a not-yet-created directory
    used to fail with a confusing "no such file or directory".
  • Security: resolved all 27 open Dependabot alerts (13 critical/high) by updating
    github.com/go-git/go-git/v5 (v5.13.0 → v5.19.1), golang.org/x/crypto (v0.36.0 → v0.54.0),
    and golang.org/x/net (v0.38.0 → v0.57.0), which pulled in patched transitive dependencies
    (go-billy, circl) as well. Verified against the full test suite, both build tag variants,
    and the Docker-based SSH integration tests. This raises the minimum Go version to 1.25
    (go-git v5.19.1's own go.mod requires it) - CI, README, and CONTRIBUTING.md updated
    accordingly.

Changed

  • Test coverage: cmd/datum, the git handler, and internal/runtime were previously untested
    (0%); all packages now have meaningful coverage (76-100%).
  • errcheck re-enabled in the linter config (previously disabled project-wide).
  • Deduplicated the source-fallback loop shared by Check/Fetch in internal/core/engine.go.