File: websocket.patch

package info (click to toggle)
cam2ip 1.6-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 280 kB
  • sloc: sh: 81; makefile: 3
file content (33 lines) | stat: -rw-r--r-- 1,096 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From: Andreas Henriksson <andreas@fatal.se>
Date: Wed, 1 Jan 2025 18:06:00 +0100
Subject: Update nhooyr.io/websocket to new import path

The code moved to github.com/nhooyr and then to github.com/coder.
The golang-nhooyr-websocket-dev debian package was updated
without taking old consumers into consideration.

Even if the symlinks for the old import name is added to the library
it still won't work because of go.mod apparently only being
able to have one canonical name:
```
src/github.com/gen2brain/cam2ip/handlers/socket.go:10:2: code in directory /build/cam2ip-1.6/_build/src/nhooyr.io/websocket expects import "github.com/coder/websocket"
```

Thus update the import to the new canonical name.
---
 handlers/socket.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/handlers/socket.go b/handlers/socket.go
index 16dc99f..eaf9986 100644
--- a/handlers/socket.go
+++ b/handlers/socket.go
@@ -7,7 +7,7 @@ import (
 	"net/http"
 	"time"
 
-	"nhooyr.io/websocket"
+	"github.com/coder/websocket"
 
 	"github.com/gen2brain/cam2ip/image"
 	"github.com/gen2brain/cam2ip/reader"