Skip to content

Conversation

@hermanschaaf
Copy link
Member

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.

@cq-bot cq-bot added the cli label Jun 26, 2023
@hermanschaaf hermanschaaf marked this pull request as ready for review June 27, 2023 14:46
@hermanschaaf hermanschaaf requested a review from disq June 27, 2023 15:53
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
Copy link
Member

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),
Copy link
Member

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.

Copy link
Member Author

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

Copy link
Member

@disq disq left a 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.

@hermanschaaf hermanschaaf added the automerge Automatically merge once required checks pass label Jun 28, 2023
@kodiakhq kodiakhq bot merged commit 16264a0 into main Jun 28, 2023
@kodiakhq kodiakhq bot deleted the cli-pass-options branch June 28, 2023 10:18
kodiakhq bot pushed a commit that referenced this pull request Jun 28, 2023
🤖 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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge Automatically merge once required checks pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants