Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Charts: Check for output dir conflicts #710

Merged
merged 1 commit into from
Jun 2, 2022

Conversation

julienduchesne
Copy link
Member

Closes #508

Whenever two charts will end up in the same dir, tanka will exit before doing anything

Ex, these two versions would end up in the flagger dir:

directory: charts
repositories:
- name: flagger
  url: https://flagger.app
requires:
- chart: flagger/flagger
  version: 1.16.1
- chart: flagger/flagger
  version: 1.17.0
version: 1
$ tk tool charts vendor
Error: Output directory conflicts found:
 - output directory "flagger" is used twice, by charts "flagger/[email protected]" and "flagger/[email protected]"

It checks in both add and vendor commands to handle the case where someone writes their YAML manually

Closes #508

Whenever two charts will end up in the same dir, tanka will exit before doing anything

Ex, these two versions would end up in the flagger dir:
```yaml
directory: charts
repositories:
- name: flagger
  url: https://flagger.app
requires:
- chart: flagger/flagger
  version: 1.16.1
- chart: flagger/flagger
  version: 1.17.0
version: 1
```

```console
$ tk tool charts vendor
Error: Output directory conflicts found:
 - output directory "flagger" is used twice, by charts "flagger/[email protected]" and "flagger/[email protected]"
```

It checks in both `add` and `vendor` commands to handle the case where someone writes their YAML manually
@julienduchesne julienduchesne requested review from Duologic, sh0rez and a team June 1, 2022 17:57
Copy link

@ofsaleem ofsaleem left a comment

Choose a reason for hiding this comment

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

lgtm!

@julienduchesne julienduchesne merged commit 5ac0dfb into main Jun 2, 2022
@julienduchesne julienduchesne deleted the julienduchesne/charts-conflicts branch June 2, 2022 11:09
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.

tool/charts: versions overwriting each other
2 participants