Skip to content

Conversation

@erezrokah
Copy link
Member

Summary

Fixes #350


Use the following steps to ensure your PR is ready to be reviewed

  • Read the contribution guidelines πŸ§‘β€πŸŽ“
  • Run go fmt to format your code πŸ–Š
  • Lint your changes via golangci-lint run 🚨 (install golangci-lint here)
  • Update or add tests πŸ§ͺ
  • Ensure the status checks below are successful βœ…

@github-actions github-actions bot added the fix label Nov 6, 2022
if destinationSourceMap[destination] == "" {
destinationSourceMap[destination] = source.Path + "@" + source.Version
} else if destinationSourceMap[destination] != source.Path+"@"+source.Version {
destinationToSourceKey := fmt.Sprintf("%s-%s", destination, source.Path)
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's ok to destination name and not destination.Path as those destination names are unique by definition in a single sync

@erezrokah erezrokah merged commit ac727f6 into cloudquery:main Nov 6, 2022
@erezrokah erezrokah deleted the fix/multiple_sources branch November 6, 2022 15:16
kodiakhq bot pushed a commit that referenced this pull request Nov 6, 2022
πŸ€– I have created a release *beep* *boop*
---


## [0.13.22](v0.13.21...v0.13.22) (2022-11-06)


### Bug Fixes

* Include source path in dest to source map key ([#353](#353)) ([ac727f6](ac727f6))

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug(config): Can't use multiple sources in the same sync

2 participants