Skip to content

Commit

Permalink
Upgrade go-plugin with extra logging
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhjp committed Aug 25, 2023
1 parent 8cbed8b commit c782a6f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion plugincontainer/container_runner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,9 @@ func TestExamplePlugin(t *testing.T) {
}

func runCmd(t *testing.T, name string, arg ...string) {
t.Helper()
cmd := exec.Command(name, arg...)
cmd.Env = append(cmd.Env, "CGO_ENABLED=0")
// cmd.Env = append(cmd.Env, "CGO_ENABLED=0")
stdout, err := cmd.StdoutPipe()
if err != nil {
t.Fatal(err)
Expand Down
2 changes: 1 addition & 1 deletion plugincontainer/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.20
require (
github.com/docker/docker v24.0.5+incompatible
github.com/hashicorp/go-hclog v1.5.0
github.com/hashicorp/go-plugin v1.4.11-rc1.0.20230824204123-ea795a53523c
github.com/hashicorp/go-plugin v1.4.11-rc1.0.20230825113755-e745070b8988
google.golang.org/grpc v1.57.0
google.golang.org/protobuf v1.31.0
)
Expand Down
2 changes: 2 additions & 0 deletions plugincontainer/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ github.com/hashicorp/go-plugin v1.4.11-rc1.0.20230822205043-de198199a241 h1:T1QY
github.com/hashicorp/go-plugin v1.4.11-rc1.0.20230822205043-de198199a241/go.mod h1:w1sAEES3g3PuV/RzUrgow20W2uErMly84hhD3um1WL4=
github.com/hashicorp/go-plugin v1.4.11-rc1.0.20230824204123-ea795a53523c h1:xdC2BtAZru57C/l4zOBaY/SFeXrWTuJVzNVmJfhqJFY=
github.com/hashicorp/go-plugin v1.4.11-rc1.0.20230824204123-ea795a53523c/go.mod h1:w1sAEES3g3PuV/RzUrgow20W2uErMly84hhD3um1WL4=
github.com/hashicorp/go-plugin v1.4.11-rc1.0.20230825113755-e745070b8988 h1:N1UAuH2VTVXl09jW3hS8OiV99rYmQuHWbLOZg+g13ao=
github.com/hashicorp/go-plugin v1.4.11-rc1.0.20230825113755-e745070b8988/go.mod h1:w1sAEES3g3PuV/RzUrgow20W2uErMly84hhD3um1WL4=
github.com/hashicorp/yamux v0.1.1 h1:yrQxtgseBDrq9Y652vSRDvsKCJKOUD+GzTS4Y0Y8pvE=
github.com/hashicorp/yamux v0.1.1/go.mod h1:CtWFDAQgb7dxtzFs4tWbplKIe2jSi3+5vKbgIO0SLnQ=
github.com/jhump/protoreflect v1.15.1 h1:HUMERORf3I3ZdX05WaQ6MIpd/NJ434hTp5YiKgfCL6c=
Expand Down

0 comments on commit c782a6f

Please sign in to comment.