Skip to content

Commit 10d44d2

Browse files
authored
feat(relay): adopt RELAY spec v1.0 stable (#27) (#28)
- Bump github.com/SoundMatt/RELAY v0.8.0 → v1.0.0 - SpecVersion now tracks relay.SpecVersion (= "1.0") so the two cannot drift, per the go-RCP pattern recommended in the issue - v1.0 has no normative changes from v0.3 (stability promotion only), so no other source changes are required Verified with `relay conform`: PASS §12.1 version document schema PASS §12.2 capabilities document schema PASS §12.3 status document schema Closes #27 Signed-off-by: Matt Jones <47545907+SoundMatt@users.noreply.github.com>
1 parent 438b02a commit 10d44d2

4 files changed

Lines changed: 14 additions & 4 deletions

File tree

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ module github.com/SoundMatt/go-LIN
22

33
go 1.25.0
44

5-
require github.com/SoundMatt/RELAY v0.8.0
5+
require github.com/SoundMatt/RELAY v1.0.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
github.com/SoundMatt/RELAY v0.8.0 h1:wIvyvMeLvHtNXuxrs0R+HET+F74yO+FWbMD8UhocezQ=
2-
github.com/SoundMatt/RELAY v0.8.0/go.mod h1:8HXkxErdk4pHaM1de9eopm2S8o1aE7tKYkCBBsHxxcg=
1+
github.com/SoundMatt/RELAY v1.0.0 h1:eb4PvxHrJd0jsR97zBHOeTNJZXB69S3MWFpaknJho6c=
2+
github.com/SoundMatt/RELAY v1.0.0/go.mod h1:8HXkxErdk4pHaM1de9eopm2S8o1aE7tKYkCBBsHxxcg=

lin.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ import (
3636
)
3737

3838
// SpecVersion is the RELAY specification version this package implements.
39-
const SpecVersion = "0.3"
39+
// It tracks the linked RELAY module so the two cannot drift.
40+
const SpecVersion = relay.SpecVersion
4041

4142
// LINMaxDataLen is the maximum number of data bytes in a LIN frame payload.
4243
const LINMaxDataLen = 8

relay_vectors_test.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,15 @@ func loadVector(t *testing.T, path string) vector {
4646
return v
4747
}
4848

49+
// ── SpecVersion tracks the linked RELAY module ────────────────────────────────
50+
51+
func TestSpecVersion_tracksRelay(t *testing.T) {
52+
if lin.SpecVersion != relay.SpecVersion {
53+
t.Errorf("lin.SpecVersion = %q; must track relay.SpecVersion = %q",
54+
lin.SpecVersion, relay.SpecVersion)
55+
}
56+
}
57+
4958
// ── Golden frame vector: canonical JSON, ToMessage, FromMessage round-trip ────
5059

5160
func TestVector_linFrame_canonicalJSON(t *testing.T) {

0 commit comments

Comments
 (0)