Skip to content

feat: Add install command to pre-install required plugins#13941

Merged
kodiakhq[bot] merged 14 commits intomainfrom
feat/download-command
Sep 28, 2023
Merged

feat: Add install command to pre-install required plugins#13941
kodiakhq[bot] merged 14 commits intomainfrom
feat/download-command

Conversation

@disq
Copy link
Copy Markdown
Member

@disq disq commented Sep 19, 2023

Fixes #13937
Requires cloudquery/plugin-pb-go#103 (merged/tagged)

@cq-bot cq-bot added the cli label Sep 19, 2023
cli/cmd/root.go Outdated
NewCmdSync(),
NewCmdMigrate(),
newCmdDoc(),
newCmdDownload(),
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Export or not export?

@disq disq changed the title feat: Add download command to pre-download required plugins feat: Add install command to pre-install required plugins Sep 19, 2023
@cq-bot cq-bot added the website label Sep 19, 2023
@disq disq force-pushed the feat/download-command branch from 176d6ce to 68392c4 Compare September 20, 2023 08:51
@disq disq marked this pull request as ready for review September 20, 2023 08:51
@disq disq requested a review from yevgenypats as a code owner September 20, 2023 08:51
Copy link
Copy Markdown
Contributor

@hermanschaaf hermanschaaf left a comment

Choose a reason for hiding this comment

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

This looks good 🚀 Just missing a test for the new command :)

@disq
Copy link
Copy Markdown
Member Author

disq commented Sep 20, 2023

This looks good 🚀 Just missing a test for the new command :)

Added in 980ac31 (#13941)

@disq disq requested a review from hermanschaaf September 20, 2023 18:50
Copy link
Copy Markdown
Contributor

@hermanschaaf hermanschaaf left a comment

Choose a reason for hiding this comment

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

Looks good, just one comment about testing

"plugins/destination/cloudquery/test/v2.1.0/plugin",
"plugins/destination/cloudquery/test/v2.1.0/plugin.zip",
"plugins/destination/cloudquery/test/v2.2.7/plugin",
"plugins/destination/cloudquery/test/v2.2.7/plugin.zip",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I believe these versions get updated automatically by bots (https://github.com/cloudquery/cloudquery/blob/main/cli/cmd/testdata/multiple-destinations.yml#L19) so we will need to read them from the config or keep them in sync some other way for those automated PRs to succeed

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is the regex we use https://github.com/cloudquery/.github/blob/c43e6ce1c7e117aa0da14aff24ec15df002fe0a6/.github/renovate-default.json5#L87 so if you create a new spec without the comment it won't automatically update the versions

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

For example

version: "v2.0.3" # v2 source
pins the source version

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Updated the test to use file counts, not specific versions

@disq disq added the automerge Automatically merge once required checks pass label Sep 28, 2023
@kodiakhq kodiakhq bot merged commit c225107 into main Sep 28, 2023
@kodiakhq kodiakhq bot deleted the feat/download-command branch September 28, 2023 17:09
kodiakhq bot pushed a commit that referenced this pull request Sep 29, 2023
🤖 I have created a release *beep* *boop*
---


## [3.21.0](cli-v3.20.0...cli-v3.21.0) (2023-09-29)


### Features

* Add `install` command to pre-install required plugins ([#13941](#13941)) ([c225107](c225107))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
hydratim pushed a commit to hydratim/cloudquery that referenced this pull request Oct 20, 2023
hydratim pushed a commit to hydratim/cloudquery that referenced this pull request Oct 20, 2023
🤖 I have created a release *beep* *boop*
---


## [3.21.0](cloudquery/cloudquery@cli-v3.20.0...cli-v3.21.0) (2023-09-29)


### Features

* Add `install` command to pre-install required plugins ([cloudquery#13941](cloudquery#13941)) ([c225107](cloudquery@c225107))

---
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.

feat: Support downloading required plugins separately

4 participants