hashicorp / hashicorp/go-plugin
Expose method for detecting if you're inside a plugin
Open
- 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
Assessment
This issue has not been assessed yet.