File: 0011-ignore-vendor-dir.patch

package info (click to toggle)
kitty 0.44.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 29,540 kB
  • sloc: ansic: 84,052; python: 57,643; objc: 5,365; sh: 1,319; xml: 364; makefile: 144; javascript: 78
file content (15 lines) | stat: -rw-r--r-- 850 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: Ignore deps in vendor dir/ This patch can be removed once we devendor image/integration
Author: Nilesh Patra <nilesh@debian.org>
Forwarded: not-needed
Last-Update: 2024-05-01
--- a/setup.py
+++ b/setup.py
@@ -1258,7 +1258,7 @@
     go = go_cmd()
     if not go:
         raise SystemExit('The go tool was not found on this system. Install Go')
-    required_go_version = subprocess.check_output(go + 'list -f {{.GoVersion}} -m'.split(), env=dict(os.environ, GO111MODULE="on")).decode().strip()
+    required_go_version = subprocess.check_output(go + 'list -f {{.GoVersion}} -m -mod=readonly'.split(), env=dict(os.environ, GO111MODULE="on")).decode().strip()
     go_version_raw = subprocess.check_output(go + ['version']).decode().strip().split()
     if go_version_raw[2] != "devel":
         current_go_version = go_version_raw[2][2:]