From b295ceeb9e4c19fbc1d6343b8b0f09efe8b7ee6c Mon Sep 17 00:00:00 2001 From: KnicKnic Date: Sun, 20 Oct 2019 21:29:55 -0700 Subject: [PATCH] change to reference checked in binaries --- go.mod | 1 + go.sum | 2 ++ pkg/powershell/chelpers.go | 2 +- pkg/powershell/hostcommand.go | 2 +- pkg/powershell/powershell.cpp | 2 +- pkg/powershell/powershell.go | 2 +- pkg/powershell/powershell.h | 2 +- pkg/powershell/powershellobjects.go | 2 +- pkg/powershell/runspace.go | 2 +- 9 files changed, 10 insertions(+), 7 deletions(-) diff --git a/go.mod b/go.mod index 9724b0a..0e880ab 100644 --- a/go.mod +++ b/go.mod @@ -3,6 +3,7 @@ module github.com/KnicKnic/go-powershell go 1.12 require ( + github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b golang.org/x/sys v0.0.0-20190626221950-04f50cda93cb k8s.io/klog v1.0.0 ) diff --git a/go.sum b/go.sum index 083a288..b81d8bc 100644 --- a/go.sum +++ b/go.sum @@ -1,4 +1,6 @@ github.com/go-logr/logr v0.1.0/go.mod h1:ixOQHD9gLJUVQQ2ZOR7zLEifBX6tGkNJF4QyIY7sIas= +github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b h1:VKtxabqXZkF25pY9ekfRL6a582T4P37/31XEstQ5p58= +github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= golang.org/x/sys v0.0.0-20190626221950-04f50cda93cb h1:fgwFCsaw9buMuxNd6+DQfAuSFqbNiQZpcgJQAgJsK6k= golang.org/x/sys v0.0.0-20190626221950-04f50cda93cb/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= k8s.io/klog v1.0.0 h1:Pt+yjF5aB1xDSVbau4VsWe+dQNzA0qv1LlXdC2dF6Q8= diff --git a/pkg/powershell/chelpers.go b/pkg/powershell/chelpers.go index bc1bd76..b6272d1 100644 --- a/pkg/powershell/chelpers.go +++ b/pkg/powershell/chelpers.go @@ -9,7 +9,7 @@ import ( /* #cgo CFLAGS: -I. -#cgo LDFLAGS: -static ${SRCDIR}/../../native-powershell/native-powershell-bin/psh_host.dll +#cgo LDFLAGS: -static ${SRCDIR}/../../bin/psh_host.dll #include diff --git a/pkg/powershell/hostcommand.go b/pkg/powershell/hostcommand.go index e3d64a0..c6ee9a5 100644 --- a/pkg/powershell/hostcommand.go +++ b/pkg/powershell/hostcommand.go @@ -3,7 +3,7 @@ package powershell /* #cgo CFLAGS: -I. -#cgo LDFLAGS: -static ${SRCDIR}/../../native-powershell/native-powershell-bin/psh_host.dll +#cgo LDFLAGS: -static ${SRCDIR}/../../bin/psh_host.dll #include diff --git a/pkg/powershell/powershell.cpp b/pkg/powershell/powershell.cpp index 8fe86dd..ef33de1 100644 --- a/pkg/powershell/powershell.cpp +++ b/pkg/powershell/powershell.cpp @@ -1,6 +1,6 @@ #include #include "powershell.h" -#include "./../../native-powershell/native-powershell-bin/host.h" +#include "./../../bin/host.h" #include #include diff --git a/pkg/powershell/powershell.go b/pkg/powershell/powershell.go index 240d645..7e0817a 100644 --- a/pkg/powershell/powershell.go +++ b/pkg/powershell/powershell.go @@ -9,7 +9,7 @@ import ( /* #cgo CFLAGS: -I. -#cgo LDFLAGS: -static ${SRCDIR}/../../native-powershell/native-powershell-bin/psh_host.dll +#cgo LDFLAGS: -static ${SRCDIR}/../../bin/psh_host.dll #include diff --git a/pkg/powershell/powershell.h b/pkg/powershell/powershell.h index 5fb55c5..470bc1f 100644 --- a/pkg/powershell/powershell.h +++ b/pkg/powershell/powershell.h @@ -1,5 +1,5 @@ -#include "./../../native-powershell/native-powershell-bin/host.h" +#include "./../../bin/host.h" #include #ifdef __cplusplus extern "C" { diff --git a/pkg/powershell/powershellobjects.go b/pkg/powershell/powershellobjects.go index 21d0249..f3d4b36 100644 --- a/pkg/powershell/powershellobjects.go +++ b/pkg/powershell/powershellobjects.go @@ -3,7 +3,7 @@ package powershell /* #cgo CFLAGS: -I. -#cgo LDFLAGS: -static ${SRCDIR}/../../native-powershell/native-powershell-bin/psh_host.dll +#cgo LDFLAGS: -static ${SRCDIR}/../../bin/psh_host.dll #include diff --git a/pkg/powershell/runspace.go b/pkg/powershell/runspace.go index 5c55f58..70207c7 100644 --- a/pkg/powershell/runspace.go +++ b/pkg/powershell/runspace.go @@ -3,7 +3,7 @@ package powershell /* #cgo CFLAGS: -I. -#cgo LDFLAGS: -static ${SRCDIR}/../../native-powershell/native-powershell-bin/psh_host.dll +#cgo LDFLAGS: -static ${SRCDIR}/../../bin/psh_host.dll #include