File: 002-adjust-import-paths.patch

package info (click to toggle)
incus 6.0.4-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 23,864 kB
  • sloc: sh: 16,015; ansic: 3,121; python: 456; makefile: 321; ruby: 51; sql: 50; lisp: 6
file content (232 lines) | stat: -rw-r--r-- 7,172 bytes parent folder | download | duplicates (3)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
From: Mathias Gibbens <gibmat@debian.org>
Description: Adjust import paths to reflect Debian packaging
Forwarded: not-needed
diff --git a/cmd/incusd/daemon.go b/cmd/incusd/daemon.go
index ab4793aaf..475ac9e7b 100644
--- a/cmd/incusd/daemon.go
+++ b/cmd/incusd/daemon.go
@@ -23,7 +23,7 @@ import (
 	dqliteClient "github.com/cowsql/go-cowsql/client"
 	"github.com/cowsql/go-cowsql/driver"
 	"github.com/gorilla/mux"
-	liblxc "github.com/lxc/go-lxc"
+	liblxc "gopkg.in/lxc/go-lxc.v2"
 	"golang.org/x/sys/unix"
 	yaml "gopkg.in/yaml.v2"
 
diff --git a/cmd/incusd/instance_console.go b/cmd/incusd/instance_console.go
index ea6c084ce..12638bb6b 100644
--- a/cmd/incusd/instance_console.go
+++ b/cmd/incusd/instance_console.go
@@ -17,7 +17,7 @@ import (
 
 	"github.com/gorilla/mux"
 	"github.com/gorilla/websocket"
-	liblxc "github.com/lxc/go-lxc"
+	liblxc "gopkg.in/lxc/go-lxc.v2"
 	"golang.org/x/sys/unix"
 
 	internalInstance "github.com/lxc/incus/v6/internal/instance"
diff --git a/cmd/incusd/main_forkconsole.go b/cmd/incusd/main_forkconsole.go
index 03895009a..a3a460d3b 100644
--- a/cmd/incusd/main_forkconsole.go
+++ b/cmd/incusd/main_forkconsole.go
@@ -6,7 +6,7 @@ import (
 	"strconv"
 	"strings"
 
-	liblxc "github.com/lxc/go-lxc"
+	liblxc "gopkg.in/lxc/go-lxc.v2"
 	"github.com/spf13/cobra"
 )
 
diff --git a/cmd/incusd/main_forkmigrate.go b/cmd/incusd/main_forkmigrate.go
index 1f0ee6cba..79d999571 100644
--- a/cmd/incusd/main_forkmigrate.go
+++ b/cmd/incusd/main_forkmigrate.go
@@ -5,7 +5,7 @@ import (
 	"os"
 	"strconv"
 
-	liblxc "github.com/lxc/go-lxc"
+	liblxc "gopkg.in/lxc/go-lxc.v2"
 	"github.com/spf13/cobra"
 )
 
diff --git a/cmd/incusd/main_forkstart.go b/cmd/incusd/main_forkstart.go
index 6ef639a15..e249d0185 100644
--- a/cmd/incusd/main_forkstart.go
+++ b/cmd/incusd/main_forkstart.go
@@ -4,7 +4,7 @@ import (
 	"fmt"
 	"os"
 
-	liblxc "github.com/lxc/go-lxc"
+	liblxc "gopkg.in/lxc/go-lxc.v2"
 	"github.com/spf13/cobra"
 	"golang.org/x/sys/unix"
 
diff --git a/cmd/incusd/storage_volumes_snapshot.go b/cmd/incusd/storage_volumes_snapshot.go
index aab210856..3dd10acbb 100644
--- a/cmd/incusd/storage_volumes_snapshot.go
+++ b/cmd/incusd/storage_volumes_snapshot.go
@@ -12,7 +12,7 @@ import (
 	"sync"
 	"time"
 
-	"github.com/flosch/pongo2/v6"
+	"github.com/flosch/pongo2"
 	"github.com/gorilla/mux"
 
 	internalInstance "github.com/lxc/incus/v6/internal/instance"
diff --git a/cmd/lxc-to-incus/main_migrate.go b/cmd/lxc-to-incus/main_migrate.go
index d2ed12956..410557b94 100644
--- a/cmd/lxc-to-incus/main_migrate.go
+++ b/cmd/lxc-to-incus/main_migrate.go
@@ -9,7 +9,7 @@ import (
 	"strconv"
 	"strings"
 
-	liblxc "github.com/lxc/go-lxc"
+	liblxc "gopkg.in/lxc/go-lxc.v2"
 	"github.com/spf13/cobra"
 
 	incus "github.com/lxc/incus/v6/client"
diff --git a/cmd/lxc-to-incus/main_migrate_test.go b/cmd/lxc-to-incus/main_migrate_test.go
index 425283ba2..f0e3696ff 100644
--- a/cmd/lxc-to-incus/main_migrate_test.go
+++ b/cmd/lxc-to-incus/main_migrate_test.go
@@ -6,7 +6,7 @@ import (
 	"strings"
 	"testing"
 
-	liblxc "github.com/lxc/go-lxc"
+	liblxc "gopkg.in/lxc/go-lxc.v2"
 	"github.com/stretchr/testify/require"
 )
 
diff --git a/cmd/lxc-to-incus/network.go b/cmd/lxc-to-incus/network.go
index 1d0752de5..320ea1852 100644
--- a/cmd/lxc-to-incus/network.go
+++ b/cmd/lxc-to-incus/network.go
@@ -4,7 +4,7 @@ import (
 	"fmt"
 	"strings"
 
-	liblxc "github.com/lxc/go-lxc"
+	liblxc "gopkg.in/lxc/go-lxc.v2"
 )
 
 func networkGet(container *liblxc.Container, index int, configKey string) map[string]string {
diff --git a/internal/server/device/proxy.go b/internal/server/device/proxy.go
index b8edd4551..e3ae01e13 100644
--- a/internal/server/device/proxy.go
+++ b/internal/server/device/proxy.go
@@ -12,7 +12,7 @@ import (
 	"strings"
 	"time"
 
-	liblxc "github.com/lxc/go-lxc"
+	liblxc "gopkg.in/lxc/go-lxc.v2"
 
 	"github.com/lxc/incus/v6/internal/linux"
 	"github.com/lxc/incus/v6/internal/server/apparmor"
diff --git a/internal/server/instance/drivers/driver_lxc.go b/internal/server/instance/drivers/driver_lxc.go
index 84f607bd9..183ea2ec7 100644
--- a/internal/server/instance/drivers/driver_lxc.go
+++ b/internal/server/instance/drivers/driver_lxc.go
@@ -26,11 +26,11 @@ import (
 	"time"
 
 	"github.com/checkpoint-restore/go-criu/v6/crit"
-	"github.com/flosch/pongo2/v6"
+	"github.com/flosch/pongo2"
 	"github.com/google/uuid"
 	"github.com/gorilla/websocket"
 	"github.com/kballard/go-shellquote"
-	liblxc "github.com/lxc/go-lxc"
+	liblxc "gopkg.in/lxc/go-lxc.v2"
 	"github.com/pkg/sftp"
 	"golang.org/x/sync/errgroup"
 	"golang.org/x/sys/unix"
diff --git a/internal/server/instance/drivers/driver_qemu.go b/internal/server/instance/drivers/driver_qemu.go
index e230acd61..bf4add56c 100644
--- a/internal/server/instance/drivers/driver_qemu.go
+++ b/internal/server/instance/drivers/driver_qemu.go
@@ -29,7 +29,7 @@ import (
 	"time"
 	"unsafe"
 
-	"github.com/flosch/pongo2/v6"
+	"github.com/flosch/pongo2"
 	"github.com/google/uuid"
 	"github.com/gorilla/websocket"
 	"github.com/kballard/go-shellquote"
diff --git a/internal/server/instance/instance_interface.go b/internal/server/instance/instance_interface.go
index faecb05d4..d4f792e08 100644
--- a/internal/server/instance/instance_interface.go
+++ b/internal/server/instance/instance_interface.go
@@ -8,7 +8,7 @@ import (
 	"os"
 	"time"
 
-	liblxc "github.com/lxc/go-lxc"
+	liblxc "gopkg.in/lxc/go-lxc.v2"
 	"github.com/pkg/sftp"
 	"google.golang.org/protobuf/proto"
 
diff --git a/internal/server/instance/instance_utils.go b/internal/server/instance/instance_utils.go
index fe4a9b8ee..faec663e3 100644
--- a/internal/server/instance/instance_utils.go
+++ b/internal/server/instance/instance_utils.go
@@ -15,9 +15,9 @@ import (
 	"strings"
 	"time"
 
-	"github.com/flosch/pongo2/v6"
+	"github.com/flosch/pongo2"
 	"github.com/google/uuid"
-	liblxc "github.com/lxc/go-lxc"
+	liblxc "gopkg.in/lxc/go-lxc.v2"
 
 	incus "github.com/lxc/incus/v6/client"
 	"github.com/lxc/incus/v6/internal/instance"
diff --git a/internal/server/network/driver_ovn.go b/internal/server/network/driver_ovn.go
index 7e1982053..8a4fdc3b4 100644
--- a/internal/server/network/driver_ovn.go
+++ b/internal/server/network/driver_ovn.go
@@ -15,7 +15,7 @@ import (
 	"strings"
 	"time"
 
-	"github.com/flosch/pongo2/v6"
+	"github.com/flosch/pongo2"
 	"github.com/mdlayher/netx/eui64"
 	ovsClient "github.com/ovn-org/libovsdb/client"
 	ovsdbModel "github.com/ovn-org/libovsdb/model"
diff --git a/internal/server/seccomp/seccomp.go b/internal/server/seccomp/seccomp.go
index 4d727b130..6470067ab 100644
--- a/internal/server/seccomp/seccomp.go
+++ b/internal/server/seccomp/seccomp.go
@@ -464,7 +464,7 @@ import (
 	"time"
 	"unsafe"
 
-	liblxc "github.com/lxc/go-lxc"
+	liblxc "gopkg.in/lxc/go-lxc.v2"
 	"golang.org/x/sys/unix"
 
 	"github.com/lxc/incus/v6/internal/linux"
diff --git a/internal/util/template.go b/internal/util/template.go
index e790133e7..48f967e8b 100644
--- a/internal/util/template.go
+++ b/internal/util/template.go
@@ -3,7 +3,7 @@ package util
 import (
 	"strings"
 
-	"github.com/flosch/pongo2/v6"
+	"github.com/flosch/pongo2"
 )
 
 // RenderTemplate renders a pongo2 template.