Parcourir la source

rename module path from impact-80 to qmk-rgb

The module was declared netdome.biz/paul/impact-80 while the repository,
the directory and the binary have all been called qmk-rgb since fb0d207.
That commit ("Rename CLI from wobkey to qmk-rgb") replaced the original
github.com/wobkey/rgb with a self-hosted domain but paired it with the old
project name, and nothing has corrected it since.

The path was never resolvable anyway: netdome.biz serves no go-import meta
tag, and the gogs host 404s for the anonymous ?go-get=1 lookup. The main
module is never fetched — go reads it from disk with Main=true, and a build
under GOPROXY=off succeeds without contacting git or the proxy. So this is a
naming fix, not a functional one, confirmed by a control build under a
deliberately fictitious module path.

Mechanically: the go.mod directive plus 30 import lines across 19 files. No
documentation referenced the old name, so nothing needed syncing there.
Paul Klumpp il y a 1 semaine
Parent
commit
1a2e775d6c

+ 1 - 1
cmd/qmk-rgb-tool/brightness_summary_test.go

@@ -5,7 +5,7 @@ import (
 	"strings"
 	"testing"
 
-	"netdome.biz/paul/impact-80/internal/via"
+	"netdome.biz/paul/qmk-rgb/internal/via"
 )
 
 func runBrightness(t *testing.T, applied map[via.LEDType]uint8, zoneFlag string, arg string) (stdout, stderr string) {

+ 2 - 2
cmd/qmk-rgb-tool/brightness_verify_test.go

@@ -6,8 +6,8 @@ import (
 	"strings"
 	"testing"
 
-	intrgb "netdome.biz/paul/impact-80/internal/rgb"
-	"netdome.biz/paul/impact-80/internal/via"
+	intrgb "netdome.biz/paul/qmk-rgb/internal/rgb"
+	"netdome.biz/paul/qmk-rgb/internal/via"
 )
 
 // verifyingProtocol records writes and reports what the keyboard actually

+ 1 - 1
cmd/qmk-rgb-tool/color.go

@@ -5,7 +5,7 @@ import (
 	"os"
 
 	"github.com/spf13/cobra"
-	"netdome.biz/paul/impact-80/internal/rgb"
+	"netdome.biz/paul/qmk-rgb/internal/rgb"
 )
 
 func NewColorCmd() *cobra.Command {

+ 2 - 2
cmd/qmk-rgb-tool/commands_test.go

@@ -5,8 +5,8 @@ import (
 	"reflect"
 	"testing"
 
-	intrgb "netdome.biz/paul/impact-80/internal/rgb"
-	"netdome.biz/paul/impact-80/internal/via"
+	intrgb "netdome.biz/paul/qmk-rgb/internal/rgb"
+	"netdome.biz/paul/qmk-rgb/internal/via"
 )
 
 type commandReport struct {

+ 2 - 2
cmd/qmk-rgb-tool/effect.go

@@ -5,8 +5,8 @@ import (
 	"strings"
 
 	"github.com/spf13/cobra"
-	intrgb "netdome.biz/paul/impact-80/internal/rgb"
-	"netdome.biz/paul/impact-80/internal/via"
+	intrgb "netdome.biz/paul/qmk-rgb/internal/rgb"
+	"netdome.biz/paul/qmk-rgb/internal/via"
 )
 
 var listEffects bool

+ 1 - 1
cmd/qmk-rgb-tool/effect_test.go

@@ -6,7 +6,7 @@ import (
 	"strings"
 	"testing"
 
-	intrgb "netdome.biz/paul/impact-80/internal/rgb"
+	intrgb "netdome.biz/paul/qmk-rgb/internal/rgb"
 )
 
 func TestResolveEffectTargetsBacklightOnly(t *testing.T) {

+ 2 - 2
cmd/qmk-rgb-tool/info.go

@@ -5,8 +5,8 @@ import (
 	"fmt"
 
 	"github.com/spf13/cobra"
-	intrgb "netdome.biz/paul/impact-80/internal/rgb"
-	"netdome.biz/paul/impact-80/internal/via"
+	intrgb "netdome.biz/paul/qmk-rgb/internal/rgb"
+	"netdome.biz/paul/qmk-rgb/internal/via"
 )
 
 type infoGetter interface {

+ 2 - 2
cmd/qmk-rgb-tool/info_test.go

@@ -8,8 +8,8 @@ import (
 	"strings"
 	"testing"
 
-	intrgb "netdome.biz/paul/impact-80/internal/rgb"
-	"netdome.biz/paul/impact-80/internal/via"
+	intrgb "netdome.biz/paul/qmk-rgb/internal/rgb"
+	"netdome.biz/paul/qmk-rgb/internal/via"
 )
 
 type infoKey struct {

+ 1 - 1
cmd/qmk-rgb-tool/keyboard_info_test.go

@@ -7,7 +7,7 @@ import (
 	"strings"
 	"testing"
 
-	intdevice "netdome.biz/paul/impact-80/internal/device"
+	intdevice "netdome.biz/paul/qmk-rgb/internal/device"
 )
 
 type deviceInfoOutput struct {

+ 1 - 1
cmd/qmk-rgb-tool/main.go

@@ -6,7 +6,7 @@ import (
 	"os"
 
 	"github.com/spf13/cobra"
-	"netdome.biz/paul/impact-80/internal/device"
+	"netdome.biz/paul/qmk-rgb/internal/device"
 )
 
 // version is set at build time via -ldflags.

+ 2 - 2
cmd/qmk-rgb-tool/profile.go

@@ -9,8 +9,8 @@ import (
 	"strings"
 
 	"github.com/spf13/cobra"
-	intrgb "netdome.biz/paul/impact-80/internal/rgb"
-	"netdome.biz/paul/impact-80/internal/via"
+	intrgb "netdome.biz/paul/qmk-rgb/internal/rgb"
+	"netdome.biz/paul/qmk-rgb/internal/via"
 )
 
 // profilesDir is a var so tests can redirect it at a temp directory.

+ 1 - 1
cmd/qmk-rgb-tool/profile_load_test.go

@@ -3,7 +3,7 @@ package main
 import (
 	"testing"
 
-	intrgb "netdome.biz/paul/impact-80/internal/rgb"
+	intrgb "netdome.biz/paul/qmk-rgb/internal/rgb"
 )
 
 func sameZones(a, b []intrgb.Zone) bool {

+ 3 - 3
cmd/qmk-rgb-tool/rgb.go

@@ -5,9 +5,9 @@ import (
 	"strconv"
 	"strings"
 
-	intdevice "netdome.biz/paul/impact-80/internal/device"
-	intrgb "netdome.biz/paul/impact-80/internal/rgb"
-	"netdome.biz/paul/impact-80/internal/via"
+	intdevice "netdome.biz/paul/qmk-rgb/internal/device"
+	intrgb "netdome.biz/paul/qmk-rgb/internal/rgb"
+	"netdome.biz/paul/qmk-rgb/internal/via"
 )
 
 type zoneProtocol interface {

+ 2 - 2
cmd/qmk-rgb-tool/rgb_test.go

@@ -6,8 +6,8 @@ import (
 	"testing"
 
 	"github.com/spf13/cobra"
-	intrgb "netdome.biz/paul/impact-80/internal/rgb"
-	"netdome.biz/paul/impact-80/internal/via"
+	intrgb "netdome.biz/paul/qmk-rgb/internal/rgb"
+	"netdome.biz/paul/qmk-rgb/internal/via"
 )
 
 func TestLightingEnabledRequiresActiveEffectAndBrightness(t *testing.T) {

+ 1 - 1
cmd/qmk-rgb-tool/select.go

@@ -5,7 +5,7 @@ import (
 	"strconv"
 	"strings"
 
-	intdevice "netdome.biz/paul/impact-80/internal/device"
+	intdevice "netdome.biz/paul/qmk-rgb/internal/device"
 )
 
 // selectDevice resolves the --device selector against the discovered

+ 1 - 1
cmd/qmk-rgb-tool/select_test.go

@@ -4,7 +4,7 @@ import (
 	"strings"
 	"testing"
 
-	intdevice "netdome.biz/paul/impact-80/internal/device"
+	intdevice "netdome.biz/paul/qmk-rgb/internal/device"
 )
 
 func testDevices() []intdevice.Device {

+ 2 - 2
cmd/qmk-rgb-tool/zones.go

@@ -1,8 +1,8 @@
 package main
 
 import (
-	intrgb "netdome.biz/paul/impact-80/internal/rgb"
-	"netdome.biz/paul/impact-80/internal/via"
+	intrgb "netdome.biz/paul/qmk-rgb/internal/rgb"
+	"netdome.biz/paul/qmk-rgb/internal/via"
 )
 
 func selectedZones() ([]intrgb.Zone, error) {

+ 1 - 1
go.mod

@@ -1,4 +1,4 @@
-module netdome.biz/paul/impact-80
+module netdome.biz/paul/qmk-rgb
 
 go 1.26.6
 

+ 1 - 1
internal/device/device.go

@@ -7,7 +7,7 @@ import (
 	"path/filepath"
 	"sort"
 
-	"netdome.biz/paul/impact-80/internal/hid"
+	"netdome.biz/paul/qmk-rgb/internal/hid"
 )
 
 // Keyboard is a metadata record from keyboards.json.

+ 2 - 2
internal/via/protocol.go

@@ -3,8 +3,8 @@ package via
 import (
 	"fmt"
 
-	"netdome.biz/paul/impact-80/internal/device"
-	"netdome.biz/paul/impact-80/internal/hid"
+	"netdome.biz/paul/qmk-rgb/internal/device"
+	"netdome.biz/paul/qmk-rgb/internal/hid"
 )
 
 type transport interface {