Add bootcommand mappings for left/right command and option keys#218
Conversation
|
While I love the initial hashicorp/packer-plugin-sdk#293 because it improves DX, I don't think it's so critical at this point that we need to start depending on a fork, since one can easily work around this by using I also have an outstanding hashicorp/packer-plugin-sdk#226, and I really hope that Packer Plugin SDK team would actually start accepting something beyond just trivial bug fixes. @fkorotkov do you think a Cirrus Labs fork of |
|
A Cirrus Labs fork would be preferable than my repo, absolutely. I'm fine with that, as long as we can move this ahead somehow :)
Note that left/right Option key is unmapped for the VNC driver: https://github.com/hashicorp/packer-plugin-sdk/pull/293/changes#diff-be5440cc45297db781dfd9b093cd7525f71d9e0b498f74002cba7f44c4f7bb50R84 Neither Super or Alt cover that. |
|
Interesting, it turns out that we never needed the ⌥ in our Packer templates. What do you need it for? As for ⌘, it can be substituted with the |
I use it here There are of course other ways to solve that particular case, but I think it makes sense for Tart's packer plugin to have a complete set of modifier key instructions :)
Could we proceed with this approach? That would work well for me :) |
What do you think about an approach similar to this: packer-plugin-tart/builder/tart/step_run.go Lines 261 to 267 in 0316fa6 This way we can support custom keys while avoiding the burden of maintaining a fork. Once Packer maintainers merge your PR, we can remove these replacements on our side. |
|
Maintaining a duplicated and separate implementation of the same feature sounds like more work/burden than maintaining a fork for a repo that doesn't update all that often, where the change is applied 1:1 with what's in the upstream PR. |
Nor does it help with your issue here. |
The problem is that the upstream still periodically updates, and this requires periodic manual interventions from us. Whereas if this feature is properly implemented inside of this repository, there's literally zero maintenance. Let's look at statistics: your PR (#178), which makes this plugin much lower-level than it needs to be (and probably for a good reason, because it simplifies the life of a lot of users) did not require any maintenance since it was merged almost a year ago, yet it's much more complicated than what I'm proposing here. |
639608f to
db7548f
Compare
db7548f to
efd8980
Compare
Awaiting the merge of the feature in the upstream Packer SDK repo. See hashicorp/packer-plugin-sdk#293
efd8980 to
936020e
Compare
|
Okey, let's do it like this |
|
Once these two are in, can we also cut a release so I can depend on the changes in my packer templates? Thanks! |
As always! Here it is: https://github.com/cirruslabs/packer-plugin-tart/releases/tag/v1.18.0. |
Awaiting the merge of the feature in the upstream Packer SDK repo, let's override the plugin SDK with a branch that has the feature.
See hashicorp/packer-plugin-sdk#293