hashicorp / hashicorp/go-plugin

Expose method for detecting if you're inside a plugin

Open
#28 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
6.1k
Forks
511
Avg merge
22h 47m
Merged PRs (30d)
4

Description

in packer we have a line that looks like

```go
inPlugin := os.Getenv(plugin.MagicCookieKey) == plugin.MagicCookieValue
```

It would be great if this could be exposed through go-plugin so we can take different actions depending on if we're in a plugin or the main body

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.