Hi all, I want to alert you to some changes we're going to be making to the step API. The changes are minimal, and shouldn't have an impact on existing plugins, but I want to make sure people are aware of it.
There's a PR at https://github.com/hashicorp/packer/pull/5810 to move the multistep library into packer itself, and to add `context.Context` as a parameter to the `Step.Run` interface. If you have your plugin dependencies pegged through govendor or similar, you should not be impacted. Existing plugin binaries will continue to work, and your plugin will continue to build. If, however, you update your dependencies to the latest version of packer, you'll need to do two things: 1. replace references to `github.com/mitchellh/multistep` with ` github.com/hashicorp/packer/helper/multistep`. 2. Change your Step.Run signatures to have `context.Context` as the first parameter. I did this with `find . -iname "step_*.go" -exec gsed -i'' 's/func \(.*\)Run(/func \1Run(_ context.Context, /' {} \;` Thanks! --Matt Hooker -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/mitchellh/packer/issues IRC: #packer-tool on Freenode --- You received this message because you are subscribed to the Google Groups "Packer" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CAEpfdnzxD-OgPDamq%3DJWyuJ17wSPA-RNFu5P4kcdmiJB2sgcuQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
