Skip to content

Commit af927fe

Browse files
authored
fix: Update to use new CLI binary names (#71)
1 parent 4625403 commit af927fe

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

example_configs/aws.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
kind: source
22
spec:
33
name: 'aws'
4-
version: 'v2.0.1'
4+
version: "v3.4.2" # latest version of aws plugin
55
destinations: ['postgresql']

example_configs/dest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
kind: destination
22
spec:
33
name: 'postgresql'
4-
version: 'v1.0.0'
4+
version: "v1.3.3" # latest version of postgresql plugin
55
write_mode: 'overwrite'
66
spec:
77
connection_string: 'postgresql://postgres:pass@localhost:5432/postgres?sslmode=disable'

src/main.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ import semver from 'semver';
77
import path from 'path';
88

99
const binaries = {
10-
darwin: 'cloudquery_darwin_x86_64',
11-
linux: 'cloudquery_linux_x86_64',
10+
darwin: 'cloudquery_darwin_amd64',
11+
linux: 'cloudquery_linux_amd64',
1212
};
1313

1414
const resolveDownloadUrl = async (version: string, binary: string) => {
1515
if (version === 'latest') {
16-
return `https://versions.cloudquery.io/latest/v1/${binary}`;
16+
return `https://versions.cloudquery.io/latest/v2/${binary}`;
1717
}
1818
const tag = version.startsWith('v') ? `cli-${version}` : `cli-v${version}`;
1919
return `https://github.com/cloudquery/cloudquery/releases/download/${tag}/${binary}`;

0 commit comments

Comments
 (0)