Skip to content

Bug(config-windows): Putting multiple configurations in the same file doesn't work on Windows #351

@erezrokah

Description

@erezrokah

Describe the bug

The following config:

kind: source
spec:
  name: aws
  version: v3.8.0
  destinations: [test,csv]
  path: cloudquery/aws
---
kind: destination
spec:
  name: test
  version: v1.2.11
  spec:
    connection_string: postgresql://postgres:pass@localhost:5432/postgres
---
kind: destination
spec:
  name: csv
  version: v1.0.0
  write_mode: append

Fails on Windows with the following error Error: expecting at least one destination

Expected Behavior

The above config should work on Windows

Steps to Reproduce

Run a sync on a Windows machine with the supplied configuration

Possible Solution

Probably related to how we split strings in

for _, doc := range strings.Split(string(data), "\n---\n") {

Provider and CloudQuery version

v1.5.5

Additional Context

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions