Skip to content

Commit

Permalink
build(deps): Update the prism go client to v0.5.1 (#197)
Browse files Browse the repository at this point in the history
The newer versions of the client admit a context in function
signatures.
  • Loading branch information
thunderboltsid authored Sep 26, 2024
1 parent 9a407aa commit 65e093d
Show file tree
Hide file tree
Showing 11 changed files with 292 additions and 292 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,16 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "^1.19"
go-version: "^1.23"

- name: Checkout Code
uses: actions/checkout@v4

- name: Lint Go Code
run: |
go install honnef.co/go/tools/cmd/staticcheck@latest
staticcheck ./...
- name: Static Check
uses: dominikh/[email protected]
with:
version: "latest"
install-go: false

vet:
name: Vet
Expand Down
3 changes: 3 additions & 0 deletions builder/nutanix/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ func (b *Builder) Run(ctx context.Context, ui packersdk.Ui, hook packersdk.Hook)
state.Put("driver", driver)
state.Put("hook", hook)
state.Put("ui", ui)
// multistep's step.Cleanup doesn't admit context but context is actually needed for cleanup,
// so we put it in the state bag to be used by the cleanup step
state.Put("ctx", ctx)

steps := []multistep.Step{
&commonsteps.StepCreateCD{
Expand Down
1 change: 0 additions & 1 deletion builder/nutanix/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (

"github.com/hashicorp/packer-plugin-sdk/common"
"github.com/hashicorp/packer-plugin-sdk/communicator"

"github.com/hashicorp/packer-plugin-sdk/multistep/commonsteps"
packersdk "github.com/hashicorp/packer-plugin-sdk/packer"
"github.com/hashicorp/packer-plugin-sdk/random"
Expand Down
Loading

0 comments on commit 65e093d

Please sign in to comment.