Update to Delve 1.20.2

Remove add_address_operator_for_go-dap_compatibility.patch
This commit is contained in:
Alejandro Sáez 2023-04-07 20:54:15 +02:00
parent 0d79aa4791
commit 818796f407
4 changed files with 3 additions and 32 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
/delve-1.20.1.tar.gz
/delve-1.20.2.tar.gz

View File

@ -1,25 +0,0 @@
From 53683491e6826bc13bf7f333e689daa62d90b12e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C3=81lex=20S=C3=A1ez?= <asm@redhat.com>
Date: Tue, 21 Mar 2023 18:13:34 +0100
Subject: [PATCH] Add address operator to make it compatible with go-dap 0.7.0
---
service/dap/server.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/service/dap/server.go b/service/dap/server.go
index 07300295..3c953ddf 100644
--- a/service/dap/server.go
+++ b/service/dap/server.go
@@ -1411,7 +1411,7 @@ func (s *Session) updateBreakpointsResponse(breakpoints []dap.Breakpoint, i int,
path := s.toClientPath(got.File)
breakpoints[i].Id = got.ID
breakpoints[i].Line = got.Line
- breakpoints[i].Source = dap.Source{Name: filepath.Base(path), Path: path}
+ breakpoints[i].Source = &dap.Source{Name: filepath.Base(path), Path: path}
}
}
--
2.39.2

View File

@ -3,7 +3,7 @@
# https://github.com/go-delve/delve
%global goipath github.com/go-delve/delve
Version: 1.20.1
Version: 1.20.2
%global common_description %{expand:
Delve is a debugger for the Go programming language. The goal of the project
@ -54,17 +54,12 @@ BuildRequires: golang(go.starlark.net/syntax)
BuildRequires: lsof
BuildRequires: git
# This patch won't be necessary in future releases.
# It makes 1.20.1 compatible with go-dap 0.7 instead of 0.6.
Patch0001: add_address_operator_for_go-dap_compatibility.patch
%description
%{common_description}
%prep
echo "=== Start prep ==="
%goprep
%patch -P 0001 -p1
%generate_buildrequires
%go_generate_buildrequires

View File

@ -1 +1 @@
SHA512 (delve-1.20.1.tar.gz) = e3edca19ce989f39e42f380ae6ff70c331f17e0233b2c6a4e1f68090de2ec16a5cb9dd9300ae780eb017d48bd3b9bef0758f53a3ff212e15265372c62d0e384b
SHA512 (delve-1.20.2.tar.gz) = c48027d200257d0a979fbf2ea3a65f6dc645d1c231264023b10c216de1e3d80db86ac775cdb02f4dcd261756c8e26bbdce598cce709eb2aa4c9853f2e0cf6cf8