Skip to content

Releases: otfabric/go-otfp

v0.0.3

Choose a tag to compare

@github-actions github-actions released this 29 Jul 23:34

Date: 2026-07-30
Previous release: v0.0.2

Summary

Patch release: MIT open-source hygiene, fix docs/code mismatches, wire typed
detection errors into detectors, and harden the Makefile coverage target.
Still v0.0.x (pre-1.0).

Changes

License & open-source hygiene

  • LICENSE — Normalized copyright to Copyright (c) 2026 OT Fabric (was personal name); standard MIT text retained.
  • SPDX headers — Added // SPDX-License-Identifier: MIT to all first-party .go source files (55 files).
  • README — License section normalized to point at LICENSE.
  • README badges — Standardized block: Go 1.23+ (from go.mod), pkg.go.dev, License, CI, Codecov (tokenless codecov.io/gh/...), Release (label=release). Removed Go Report Card (service unmaintained).

Fixed

  • README CI badge — image URL pointed at otfp/modbus; now otfabric/go-otfp.
  • DefaultEngineConfig docsParallel default documented as false (matches code / CLI).
  • Makefile coverage — define TEST_PKGS (all packages except /cmd/) so coverage no longer expands to an empty package list.

Added

  • core.ClassifyDial / ClassifyIO — map dial and send/receive failures to TimeoutError, ConnectionError, or DetectError.
  • All protocol detectors now return those typed errors instead of bare fmt.Errorf wrappers (so otprobe JSON classification and errors.As work).
  • Makefile vulngovulncheck ./..., included in make check.
  • MakefileGOWORK=off so a parent go.work that omits this module does not break checks.

Documentation

  • Observer — clarified as scan progress/audit callbacks, not request metrics (README, API.md, godoc).
  • Stabilityv0.0.x pre-1.0 note in README and this file.
  • Errors — document classifier helpers; note InvalidResponseError remains optional (detectors prefer NoMatch for protocol mismatches).
  • README — table of contents; short Project structure summary; Architecture tree refreshed (classify.go, wireshark/, removed stale version.txt).
  • ERRORS.md — Short error taxonomy: no-match Result vs typed transport/detection errors; classifier helpers; CLI JSON type mapping.

v0.0.2

Choose a tag to compare

@github-actions github-actions released this 24 Mar 09:34

Date: 2026-03-24
Previous release: v0.0.1

Summary

Module rename, build system overhaul, and adoption of shared CI/release workflows.

Changes

Module rename

  • Renamed Go module from github.com/otfabric/otfp to github.com/otfabric/go-otfp across all packages, imports, and documentation.

Build-time version injection

  • Replaced version.txt-based versioning with compile-time ldflags (-X main.version, -X main.tag, -X main.commit, -X main.buildDate).
  • Removed cmd/otprobe/version.txt.
  • Updated BuildInfo struct: replaced Branch, Revision, and BuildUser fields with Tag and Commit to align with the shared release workflow.

CI/CD

  • Migrated CI workflow to reusable otfabric/.github/.github/workflows/go-ci.yml@v2 with multi-version Go matrix (1.23–1.26) and Codecov integration.
  • Migrated release workflow to reusable go-package-release.yml@v2 and go-binary-release.yml@v2, replacing the monolithic inline release job.

Makefile

  • Restructured targets: separated fmt, lint (staticcheck), lint-ci (golangci-lint), and added coverage/cover targets.
  • Version variables now derived from git describe and git rev-parse instead of version.txt.
  • Binary output directory remains ./bin/.

Go version

  • Lowered minimum Go version from 1.25 to 1.23.

Documentation

  • Updated README badges, install commands, and code examples to reflect the new module path.

v0.0.1

Choose a tag to compare

@github-actions github-actions released this 12 Mar 09:52

Changes since v0.0.0

  • Initial release