Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: use ui.Sayf and ui.Errorf #444

Merged
merged 1 commit into from
Jun 19, 2024
Merged

Conversation

tenthirtyam
Copy link
Collaborator

Description

Updated packer-plugin-sdk to v0.5.4.

Updated instances of the following to take advantage of changes in packer-plugin-sdk v0.5.3 and later.

  • ui.Say(fmt.Errorf( to ui.Sayf(
  • ui.Error(fmt.Errorf( to ui.Errorf(

Updates messaging to be more consistent, where applicable.

Testing

packer-plugin-vsphere on  refactor/uiSay-uiError
➜ go fmt ./...

packer-plugin-vsphere on  refactor/uiSay-uiError
➜ make build  

packer-plugin-vsphere on  refactor/uiSay-uiError
➜ make test
?       github.com/hashicorp/packer-plugin-vsphere      [no test files]
?       github.com/hashicorp/packer-plugin-vsphere/builder/vsphere/common/testing       [no test files]
?       github.com/hashicorp/packer-plugin-vsphere/examples/driver      [no test files]
?       github.com/hashicorp/packer-plugin-vsphere/version      [no test files]
ok      github.com/hashicorp/packer-plugin-vsphere/builder/vsphere/clone        2.386s
ok      github.com/hashicorp/packer-plugin-vsphere/builder/vsphere/common       5.368s
ok      github.com/hashicorp/packer-plugin-vsphere/builder/vsphere/driver       7.594s
ok      github.com/hashicorp/packer-plugin-vsphere/builder/vsphere/iso  5.739s
ok      github.com/hashicorp/packer-plugin-vsphere/builder/vsphere/supervisor   10.062s
ok      github.com/hashicorp/packer-plugin-vsphere/post-processor/vsphere       4.484s
ok      github.com/hashicorp/packer-plugin-vsphere/post-processor/vsphere-template      5.722s

Reference

hashicorp/packer-plugin-sdk#225

@tenthirtyam tenthirtyam added the chore Chore label Jun 19, 2024
@tenthirtyam tenthirtyam added this to the v1.3.1 milestone Jun 19, 2024
@tenthirtyam tenthirtyam self-assigned this Jun 19, 2024
@tenthirtyam tenthirtyam requested a review from a team as a code owner June 19, 2024 18:56
Copy link
Contributor

@lbajolet-hashicorp lbajolet-hashicorp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for this update @tenthirtyam!

I left a small nit, let me know what you want to do with it, and we can merge after that

builder/vsphere/common/step_import_to_content_library.go Outdated Show resolved Hide resolved
@tenthirtyam tenthirtyam force-pushed the refactor/uiSay-uiError branch from 228ec9e to 1960882 Compare June 19, 2024 19:28
@tenthirtyam tenthirtyam force-pushed the refactor/uiSay-uiError branch from 1960882 to 4b9e8c1 Compare June 19, 2024 19:34
Updated `packer-plugin-sdk` to v0.5.4.

Updated instances of the following to take advantage of changes in `packer-plugin-sdk` v0.5.3 and later.

- `ui.Say(fmt.Errorf(` to `ui.Sayf(`
- `ui.Error(fmt.Errorf(` to `ui.Errorf(`

Updates messaging to be more consistent, where applicable.

Signed-off-by: Ryan Johnson <[email protected]>
@lbajolet-hashicorp lbajolet-hashicorp merged commit 8bedbd3 into main Jun 19, 2024
12 checks passed
@lbajolet-hashicorp lbajolet-hashicorp deleted the refactor/uiSay-uiError branch June 19, 2024 20:35
@hashicorp hashicorp locked as resolved and limited conversation to collaborators Jun 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants