Skip to content

Commit

Permalink
feat(plugin): increased protocol version
Browse files Browse the repository at this point in the history
  • Loading branch information
StanGirard committed Sep 27, 2022
1 parent becb0f3 commit a260154
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.19
require (
github.com/hashicorp/go-hclog v1.3.1
github.com/hashicorp/go-plugin v1.4.5
github.com/stangirard/yatas v1.0.0
github.com/stangirard/yatas v1.2.0
)

require (
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA=
github.com/oklog/run v1.1.0/go.mod h1:sVPdnTZT1zYwAJeCMu2Th4T21pA3FPOQRfWjQlk7DVU=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stangirard/yatas v1.0.0 h1:c+M8YliBaaW/RW4bf+UsJG214WfBTakHcsJBnUh8TbM=
github.com/stangirard/yatas v1.0.0/go.mod h1:hE7NX8L76pv6BfOXwMKf95gVvCx0wu2MLJW9s4NJ0qM=
github.com/stangirard/yatas v1.2.0 h1:Y3vvsf8HB96olDxCoiNtOAvmD4zsd0zyCvAkiqzG45Q=
github.com/stangirard/yatas v1.2.0/go.mod h1:hE7NX8L76pv6BfOXwMKf95gVvCx0wu2MLJW9s4NJ0qM=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.7.2 h1:4jaiDzPyXQvSd7D0EjG45355tLlV3VOECpq10pLC+8s=
github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals=
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func (g *YatasPlugin) Run(c *commons.Config) []commons.Tests {
// This prevents users from executing bad plugins or executing a plugin
// directory. It is a UX feature, not a security feature.
var handshakeConfig = plugin.HandshakeConfig{
ProtocolVersion: 1,
ProtocolVersion: 2,
MagicCookieKey: "BASIC_PLUGIN",
MagicCookieValue: "hello",
}
Expand Down

0 comments on commit a260154

Please sign in to comment.