From 1c7329aeea9bc399daae7449ae391530c88ca3fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Balv=C3=ADn?= Date: Sat, 19 Sep 2026 00:14:39 +0200 Subject: [PATCH] build: move the module path to /v2 Assisted-by: GLM 5.3 Flash --- CHANGELOG.md | 6 ++++++ README.md | 2 +- cmd/interpres-decode/main.go | 2 +- cmd/interpres-decode/main_test.go | 2 +- docs/API.md | 4 ++-- docs/CLI.md | 2 +- examples/basic/main.go | 2 +- go.mod | 2 +- 8 files changed, 14 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b7ac28e..2e03c9a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - +### Changed + +- The module path carries the /v2 suffix the Go toolchain requires of + every major version 2 module: imports change to + `sourcedock.dev/petrbalvin/interpres/v2`. + ## [1.1.0] - 2026-09-18 ### Added diff --git a/README.md b/README.md index 1865a71..a320620 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ the entire official [toml-test](https://github.com/toml-lang/toml-test) suite: As a library: ```sh -go get sourcedock.dev/petrbalvin/interpres +go get sourcedock.dev/petrbalvin/interpres/v2 ``` Requires Go 1.27.1 or newer. The module imports only the standard library. diff --git a/cmd/interpres-decode/main.go b/cmd/interpres-decode/main.go index d168328..1b1a856 100644 --- a/cmd/interpres-decode/main.go +++ b/cmd/interpres-decode/main.go @@ -25,7 +25,7 @@ import ( "strconv" "time" - "sourcedock.dev/petrbalvin/interpres" + "sourcedock.dev/petrbalvin/interpres/v2" ) func main() { diff --git a/cmd/interpres-decode/main_test.go b/cmd/interpres-decode/main_test.go index 4f354b2..b28e6bd 100644 --- a/cmd/interpres-decode/main_test.go +++ b/cmd/interpres-decode/main_test.go @@ -12,7 +12,7 @@ import ( "testing" "time" - "sourcedock.dev/petrbalvin/interpres" + "sourcedock.dev/petrbalvin/interpres/v2" ) func TestRunParsesValidTOML(t *testing.T) { diff --git a/docs/API.md b/docs/API.md index ce5eda7..5b9e5a7 100644 --- a/docs/API.md +++ b/docs/API.md @@ -1,10 +1,10 @@ # API -The library exports the surface below from the `sourcedock.dev/petrbalvin/interpres` +The library exports the surface below from the `sourcedock.dev/petrbalvin/interpres/v2` package. The snippets assume: ```go -import "sourcedock.dev/petrbalvin/interpres" +import "sourcedock.dev/petrbalvin/interpres/v2" ``` The parser accepts TOML 1.0 documents plus the TOML 1.1 extensions: date-times diff --git a/docs/CLI.md b/docs/CLI.md index 5b7218b..1a76fd8 100644 --- a/docs/CLI.md +++ b/docs/CLI.md @@ -5,7 +5,7 @@ the toml-test harness adapter, and it also validates documents. Install it with Go itself, no release assets involved: ```sh -go install sourcedock.dev/petrbalvin/interpres/cmd/interpres-decode@latest +go install sourcedock.dev/petrbalvin/interpres/v2/cmd/interpres-decode@latest ``` ## Synopsis diff --git a/examples/basic/main.go b/examples/basic/main.go index ca2d430..53a6389 100644 --- a/examples/basic/main.go +++ b/examples/basic/main.go @@ -13,7 +13,7 @@ import ( "os" "time" - "sourcedock.dev/petrbalvin/interpres" + "sourcedock.dev/petrbalvin/interpres/v2" ) // document is a small but realistic configuration: it has scalars, a diff --git a/go.mod b/go.mod index 06b19e7..94904e7 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ -module sourcedock.dev/petrbalvin/interpres +module sourcedock.dev/petrbalvin/interpres/v2 go 1.27.1