-
Notifications
You must be signed in to change notification settings - Fork 547
fix: CLI v4: issue config deprecation warnings, pass options to plugin-level spec #11766
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
Conversation
cli/cmd/specs.go
Outdated
| Concurrency: spec.Concurrency, | ||
| TableConcurrency: spec.TableConcurrency, | ||
| ResourceConcurrency: spec.ResourceConcurrency, | ||
| Concurrency: spec.Concurrency, // nolint:staticcheck // allow use of deprecated options here for backwards-compatibility |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe arrange the deprecated options down in the struct together... then the allow use of... comment can be at the top of the 'block'.
| Destinations: make([]*Destination, 0), | ||
| sourcesMap: make(map[string]*Source), | ||
| destinationsMap: make(map[string]*Destination), | ||
| Sources: make([]*Source, 0), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to make the slices.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was like this before, but we can clean it up in the next iteration
disq
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just a few nits for readability.
🤖 I have created a release *beep* *boop* --- ## [3.6.0](cli-v3.5.4...cli-v3.6.0) (2023-06-28) ### Features * **cli:** Upgrade to SDK v4, protocol v3 ([#11683](#11683)) ([1593f2d](1593f2d)) ### Bug Fixes * CLI v4: issue config deprecation warnings, pass options to plugin-level spec ([#11766](#11766)) ([16264a0](16264a0)) * **CLI:** Multiple migrations ([#11791](#11791)) ([df01ac4](df01ac4)) * **cli:** Set SkipDependentTables, DeterministicCqId ([#11759](#11759)) ([2bcb1c9](2bcb1c9)) * **deps:** Update module github.com/cloudquery/plugin-pb-go to v1.2.0 ([#11720](#11720)) ([7ef521d](7ef521d)) * **deps:** Update module github.com/cloudquery/plugin-pb-go to v1.2.1 ([#11722](#11722)) ([309be72](309be72)) * **deps:** Update module github.com/cloudquery/plugin-pb-go to v1.3.3 ([#11726](#11726)) ([f0ca611](f0ca611)) * **deps:** Update module github.com/cloudquery/plugin-pb-go to v1.3.4 ([#11753](#11753)) ([cd4fe1c](cd4fe1c)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
This updates the V4 CLI to log deprecation warnings for config fields that are moving to the plugin spec level, and forward the settings to the plugin if they are still in use.