Bump github.com/go-git/go-git/v5 from 5.4.2 to 5.11.0
Bumps [github.com/go-git/go-git/v5](https://github.com/go-git/go-git) from 5.4.2 to 5.11.0. - [Release notes](https://github.com/go-git/go-git/releases) - [Commits](https://github.com/go-git/go-git/compare/v5.4.2...v5.11.0) --- updated-dependencies: - dependency-name: github.com/go-git/go-git/v5 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]>
This commit is contained in:
+11
-5
@@ -17,6 +17,7 @@
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
//go:build windows
|
||||
// +build windows
|
||||
|
||||
package sshagent
|
||||
@@ -31,6 +32,8 @@ import (
|
||||
"sync"
|
||||
"syscall"
|
||||
"unsafe"
|
||||
|
||||
"golang.org/x/sys/windows"
|
||||
)
|
||||
|
||||
// Maximum size of message can be sent to pageant
|
||||
@@ -59,13 +62,16 @@ type copyData struct {
|
||||
var (
|
||||
lock sync.Mutex
|
||||
|
||||
winFindWindow = winAPI("user32.dll", "FindWindowW")
|
||||
winGetCurrentThreadID = winAPI("kernel32.dll", "GetCurrentThreadId")
|
||||
winSendMessage = winAPI("user32.dll", "SendMessageW")
|
||||
user32dll = windows.NewLazySystemDLL("user32.dll")
|
||||
winFindWindow = winAPI(user32dll, "FindWindowW")
|
||||
winSendMessage = winAPI(user32dll, "SendMessageW")
|
||||
|
||||
kernel32dll = windows.NewLazySystemDLL("kernel32.dll")
|
||||
winGetCurrentThreadID = winAPI(kernel32dll, "GetCurrentThreadId")
|
||||
)
|
||||
|
||||
func winAPI(dllName, funcName string) func(...uintptr) (uintptr, uintptr, error) {
|
||||
proc := syscall.MustLoadDLL(dllName).MustFindProc(funcName)
|
||||
func winAPI(dll *windows.LazyDLL, funcName string) func(...uintptr) (uintptr, uintptr, error) {
|
||||
proc := dll.NewProc(funcName)
|
||||
return func(a ...uintptr) (uintptr, uintptr, error) { return proc.Call(a...) }
|
||||
}
|
||||
|
||||
|
||||
+1
@@ -14,6 +14,7 @@
|
||||
// limitations under the License.
|
||||
//
|
||||
|
||||
//go:build !windows
|
||||
// +build !windows
|
||||
|
||||
package sshagent
|
||||
|
||||
+1
@@ -17,6 +17,7 @@
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
//go:build windows
|
||||
// +build windows
|
||||
|
||||
package sshagent
|
||||
|
||||
Reference in New Issue
Block a user