From 26200f578c3f11bf9bb424261e03df346530f176 Mon Sep 17 00:00:00 2001 From: bartvanbos Date: Mon, 30 Nov 2026 14:07:24 +0100 Subject: [PATCH] deps: go-profinet v0.26.0, release workflow at v3.9.0 (v0.22.1) go-profinet v0.24.0 -> v0.26.0 (policy 1.7 decision points and typed events, guarded callbacks; v0.25.0 alarm, RPC and device fixes). No change to profinetctl's code. The Release workflow moves to the shared go-binary-release.yml@v3.9.0, which refuses draft release notes. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/release.yml | 2 +- RELEASE.md | 47 +++++++++++++++++++++++++++++++++-- go.mod | 2 +- go.sum | 4 +-- 4 files changed, 49 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 533fc98..4b1b1e3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,7 +21,7 @@ permissions: jobs: release-profinetctl-binary: - uses: otfabric/.github/.github/workflows/go-binary-release.yml@v3.8.0 + uses: otfabric/.github/.github/workflows/go-binary-release.yml@v3.9.0 with: bump: ${{ inputs.bump }} binary-name: profinetctl diff --git a/RELEASE.md b/RELEASE.md index 6274283..0f5bc98 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -1,6 +1,6 @@ # Releasing profinetctl -Releases are cut by the **Release** workflow (`.github/workflows/release.yml`, the shared `otfabric/.github` `go-binary-release.yml@v3.8.0`): run it from the Actions tab with the version bump (`patch`, `minor`, `major`). It tags the version, builds the binaries for Linux (x86-64, ARM64, ARMv7), macOS (x86-64, ARM64) and Windows (x86-64, ARM64) with the version, tag, commit and build date in `profinetctl version`, and publishes them with SHA-256 checksums. +Releases are cut by the **Release** workflow (`.github/workflows/release.yml`, the shared `otfabric/.github` `go-binary-release.yml@v3.9.0`): run it from the Actions tab with the version bump (`patch`, `minor`, `major`). It tags the version, builds the binaries for Linux (x86-64, ARM64, ARMv7), macOS (x86-64, ARM64) and Windows (x86-64, ARM64) with the version, tag, commit and build date in `profinetctl version`, and publishes them with SHA-256 checksums. ## go-profinet @@ -23,6 +23,49 @@ ending with a `---` line and no `---` line inside a section --- +## v0.22.1 + +**Date:** 2026-11-30 +**Previous release:** v0.22.0 + +Built on go-profinet v0.26.0 (was v0.24.0). No change to the commands, +flags, exit codes or JSON output of profinetctl. + +What the go-profinet releases in between mean for profinetctl: + +- **Callbacks of the controller are guarded** (v0.26.0): the controller + runs its `OnState` and `OnAlarm` callbacks, which profinetctl uses to + print the events of `connect` and the other AR commands, on a + goroutine of their own. A callback that panics is logged at Warn and + the AR goes on; before, it ended the process. +- **Alarm sequence numbers** (v0.25.0, `alarm.Endpoint`): a DATA PDU + whose first transmission failed or whose send was cancelled no longer + uses up its sequence number, a pending PDU keeps its own copy of the + payload, and after a DATA PDU timed out the endpoint sends no further + DATA PDU (the AR is to be aborted). +- **RPC fragments in mixed byte order are refused** (v0.25.0): a + fragmented call or answer whose fragments differ in DRep byte order is + malformed; before, the body was read in the last fragment's order. +- **Decoded LLDP**: the PROFINET MRP port status TLV is now decoded by + go-profinet (v0.25.0); `lldp` shows the same fields as before. +- Against go-profinet IO-Devices (v0.25.0): their LLDP TTL is 21 s (was + 20 s), which `lldp` shows; written MRP timers of the 200 and 500 ms + profiles are applied and other timers refused; a controller that + reconnects with a new IOCAR writes its port checks again; a repeated + identical diagnosis no longer raises a second alarm, and the + AlarmSpecifier of a maintenance diagnosis no longer advertises a fault. +- Policy 1.7 (v0.26.0) added device-side decision points + (`device.Config.Authorize`, `dcp.Policy.Authorize`) and typed events; + a go-profinet IO-Device that uses them may refuse a Connect, a record + Read or Write or a DCP Set that profinetctl sends, with the status the + application chose (for example "access denied"), which profinetctl + reports as for any other device refusal. + +The Release workflow uses the shared `go-binary-release.yml@v3.9.0`, +which refuses draft release notes. + +--- + ## v0.22.0 **Date:** 2026-11-24 @@ -733,7 +776,7 @@ go on or succeed wrongly, as listed below. Hello; the `--station` and `topology` rules above. README.md: `topology check` binds UDP 34964; a missing privilege exits 9, as docs/exitcodes.md says (it said 4). RELEASE.md: the release workflow is - `go-binary-release.yml@v3.8.0`. + `go-binary-release.yml@v3.9.0`. ### CI diff --git a/go.mod b/go.mod index 856e9f1..2f76a38 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/otfabric/profinetctl go 1.26 require ( - github.com/otfabric/go-profinet v0.24.0 + github.com/otfabric/go-profinet v0.26.0 github.com/spf13/cobra v1.10.2 github.com/spf13/pflag v1.0.10 ) diff --git a/go.sum b/go.sum index 8b78940..84a7cf2 100644 --- a/go.sum +++ b/go.sum @@ -1,8 +1,8 @@ github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g= github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= -github.com/otfabric/go-profinet v0.24.0 h1:BRGixSpB2TDKFm49Txw4aHEL/+X9Zg1HtMeod1aFogQ= -github.com/otfabric/go-profinet v0.24.0/go.mod h1:eLxHQxabRs/OloPKSXKo/0OOgMjwjJUwnkQstdfE2wI= +github.com/otfabric/go-profinet v0.26.0 h1:v8ibrq2tSt5x4AkHRE5a9wNBvUMJciERt+QmoEuxyw4= +github.com/otfabric/go-profinet v0.26.0/go.mod h1:eLxHQxabRs/OloPKSXKo/0OOgMjwjJUwnkQstdfE2wI= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/spf13/cobra v1.10.2 h1:DMTTonx5m65Ic0GOoRY2c16WCbHxOOw6xxezuLaBpcU= github.com/spf13/cobra v1.10.2/go.mod h1:7C1pvHqHw5A4vrJfjNwvOdzYu0Gml16OCs2GRiTUUS4=