mirror of
https://github.com/hashicorp/packer.git
synced 2026-03-01 04:50:52 -05:00
This change replaces the deprecated constructors `New` with `NewService`. Static check before the change ``` ⇶ golangci-lint run --disable-all --no-config --enable=staticcheck | grep SA1019 | grep google - post-processor/googlecompute-import/post-processor.go:183:18: SA1019: storage.New is deprecated: please use NewService instead. To provide a custom HTTP client, use option.WithHTTPClient. If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead. (staticcheck) - post-processor/googlecompute-import/post-processor.go:219:18: SA1019: compute.New is deprecated: please use NewService instead. To provide a custom HTTP client, use option.WithHTTPClient. If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead. (staticcheck) - post-processor/googlecompute-import/post-processor.go:273:18: SA1019: storage.New is deprecated: please use NewService instead. To provide a custom HTTP client, use option.WithHTTPClient. If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead. (staticcheck) - builder/googlecompute/driver_gce.go:127:18: SA1019: compute.New is deprecated: please use NewService instead. To provide a custom HTTP client, use option.WithHTTPClient. If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead. (staticcheck) - builder/googlecompute/driver_gce.go:132:25: SA1019: oslogin.New is deprecated: please use NewService instead. To provide a custom HTTP client, use option.WithHTTPClient. If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead. (staticcheck) ``` Static check after change ``` [go-1.15.2] [1] wilken@automaton in ~/Development/packer/ ⇶ golangci-lint run --disable-all --no-config --enable=staticcheck | grep SA1019 | grep google ``` |
||
|---|---|---|
| .. | ||
| test-fixtures | ||
| account.go | ||
| artifact.go | ||
| artifact_test.go | ||
| builder.go | ||
| config.go | ||
| config.hcl2spec.go | ||
| config_test.go | ||
| driver.go | ||
| driver_gce.go | ||
| driver_mock.go | ||
| image.go | ||
| image_test.go | ||
| networking.go | ||
| networking_test.go | ||
| startup.go | ||
| step_check_existing_image.go | ||
| step_check_existing_image_test.go | ||
| step_create_image.go | ||
| step_create_image_test.go | ||
| step_create_instance.go | ||
| step_create_instance_test.go | ||
| step_create_ssh_key.go | ||
| step_create_ssh_key_test.go | ||
| step_create_windows_password.go | ||
| step_create_windows_password_test.go | ||
| step_import_os_login_ssh_key.go | ||
| step_import_os_login_ssh_key_test.go | ||
| step_instance_info.go | ||
| step_instance_info_test.go | ||
| step_start_tunnel.go | ||
| step_start_tunnel.hcl2spec.go | ||
| step_start_tunnel_test.go | ||
| step_teardown_instance.go | ||
| step_teardown_instance_test.go | ||
| step_test.go | ||
| step_wait_startup_script.go | ||
| step_wait_startup_script_test.go | ||
| template_funcs.go | ||
| template_funcs_test.go | ||
| tunnel_driver.go | ||
| tunnel_driver_windows.go | ||
| winrm.go | ||