From 61ff94f09c7d83ba05654f8f9d26ee8a6fd131b2 Mon Sep 17 00:00:00 2001 From: "T. von Dein" Date: Fri, 5 Dec 2025 20:46:16 +0100 Subject: [PATCH] make v2 the migration version to codeberg (#2) --- .woodpecker/build.yaml | 1 - README.md | 10 +++++----- v1/bar.go => bar.go | 0 v1/command.go => command.go | 0 v1/doc.go => doc.go | 0 v1/event.go => event.go | 0 v1/go.mod => go.mod | 2 +- v1/go.sum => go.sum | 0 v1/input.go => input.go | 0 v1/io.go => io.go | 0 v1/net.go => net.go | 0 v1/node.go => node.go | 0 v1/output.go => output.go | 0 v1/seat.go => seat.go | 0 v1/simpletons.go => simpletons.go | 0 v1/swayipc.go => swayipc.go | 0 v1/version.go => version.go | 0 17 files changed, 6 insertions(+), 7 deletions(-) rename v1/bar.go => bar.go (100%) rename v1/command.go => command.go (100%) rename v1/doc.go => doc.go (100%) rename v1/event.go => event.go (100%) rename v1/go.mod => go.mod (64%) rename v1/go.sum => go.sum (100%) rename v1/input.go => input.go (100%) rename v1/io.go => io.go (100%) rename v1/net.go => net.go (100%) rename v1/node.go => node.go (100%) rename v1/output.go => output.go (100%) rename v1/seat.go => seat.go (100%) rename v1/simpletons.go => simpletons.go (100%) rename v1/swayipc.go => swayipc.go (100%) rename v1/version.go => version.go (100%) diff --git a/.woodpecker/build.yaml b/.woodpecker/build.yaml index 2753a83..624a9ce 100644 --- a/.woodpecker/build.yaml +++ b/.woodpecker/build.yaml @@ -23,7 +23,6 @@ steps: image: golang:${goversion} commands: - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/HEAD/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.5.0 - - cd v1 - golangci-lint --version - golangci-lint run ./... depends_on: [build] diff --git a/README.md b/README.md index 2ee94b0..9751e35 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ [![status-badge](https://ci.codeberg.org/api/badges/15565/status.svg)](https://ci.codeberg.org/repos/15565) -[![Go Report Card](https://goreportcard.com/badge/codeberg.org/scip/swayipc/v1)](https://goreportcard.com/report/codeberg.org/scip/swayipc/v1) +[![Go Report Card](https://goreportcard.com/badge/codeberg.org/scip/swayipc)](https://goreportcard.com/report/codeberg.org/scip/swayipc) [![License](https://img.shields.io/badge/license-GPL-blue.svg)](https://codeberg.org/scip/swayipc/raw/branch/main/LICENSE) -[![GoDoc](https://godoc.org/codeberg.org/scip/swayipc?status.svg)](https://godoc.org/codeberg.org/scip/swayipc/v1) +[![GoDoc](https://godoc.org/codeberg.org/scip/swayipc?status.svg)](https://godoc.org/codeberg.org/scip/swayipc) # swayipc - go bindings to control sway and swayfx @@ -26,7 +26,7 @@ haven't tested it on i3wm. The module uses the i3-IPC proctocol as outlined in sway-ipc(7). For details on how to use the library, see the -[reference documentation](https://godoc.org/codeberg.org/scip/swayipc/v1). +[reference documentation](https://godoc.org/codeberg.org/scip/swayipc). ## Example usage @@ -39,7 +39,7 @@ import ( "fmt" "log" - "codeberg.org/scip/swayipc/v1" + "codeberg.org/scip/swayipc/v2" ) func main() { @@ -79,7 +79,7 @@ which is using this module. Execute this to add the module to your project: ```sh -go get codeberg.org/scip/swayipc/v1 +go get codeberg.org/scip/swayipc/v2 ``` ## Acknowledgements diff --git a/v1/bar.go b/bar.go similarity index 100% rename from v1/bar.go rename to bar.go diff --git a/v1/command.go b/command.go similarity index 100% rename from v1/command.go rename to command.go diff --git a/v1/doc.go b/doc.go similarity index 100% rename from v1/doc.go rename to doc.go diff --git a/v1/event.go b/event.go similarity index 100% rename from v1/event.go rename to event.go diff --git a/v1/go.mod b/go.mod similarity index 64% rename from v1/go.mod rename to go.mod index 78b37f6..d1a7284 100644 --- a/v1/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module codeberg.org/scip/swayipc/v1 +module codeberg.org/scip/swayipc/v2 go 1.23 diff --git a/v1/go.sum b/go.sum similarity index 100% rename from v1/go.sum rename to go.sum diff --git a/v1/input.go b/input.go similarity index 100% rename from v1/input.go rename to input.go diff --git a/v1/io.go b/io.go similarity index 100% rename from v1/io.go rename to io.go diff --git a/v1/net.go b/net.go similarity index 100% rename from v1/net.go rename to net.go diff --git a/v1/node.go b/node.go similarity index 100% rename from v1/node.go rename to node.go diff --git a/v1/output.go b/output.go similarity index 100% rename from v1/output.go rename to output.go diff --git a/v1/seat.go b/seat.go similarity index 100% rename from v1/seat.go rename to seat.go diff --git a/v1/simpletons.go b/simpletons.go similarity index 100% rename from v1/simpletons.go rename to simpletons.go diff --git a/v1/swayipc.go b/swayipc.go similarity index 100% rename from v1/swayipc.go rename to swayipc.go diff --git a/v1/version.go b/version.go similarity index 100% rename from v1/version.go rename to version.go