Navigation Menu

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

fix: warn if list has multiple files with same name #3607

Merged
merged 1 commit into from Nov 30, 2022
Merged

fix: warn if list has multiple files with same name #3607

merged 1 commit into from Nov 30, 2022

Conversation

caarlos0
Copy link
Member

@caarlos0 caarlos0 commented Nov 29, 2022

List() "materializes" the filters, so its used everywhere... if we have multiple files with the same name there, its likely some filter wasn't enough, or that the user configuration is faulty. Either way, we should warn about it to help prevent release issues (like duplicated assets on github).

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
@caarlos0 caarlos0 self-assigned this Nov 29, 2022
@pull-request-size pull-request-size bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Nov 29, 2022
@vercel vercel bot temporarily deployed to Preview November 29, 2022 11:14 Inactive
@caarlos0 caarlos0 added the enhancement New feature or request label Nov 29, 2022
@caarlos0 caarlos0 added this to the v1.14.0 milestone Nov 29, 2022
@caarlos0 caarlos0 marked this pull request as ready for review November 29, 2022 11:18
@codecov
Copy link

codecov bot commented Nov 29, 2022

Codecov Report

Merging #3607 (9ae87d0) into main (bb6181c) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #3607      +/-   ##
==========================================
+ Coverage   83.83%   83.84%   +0.01%     
==========================================
  Files         117      117              
  Lines        9798     9807       +9     
==========================================
+ Hits         8214     8223       +9     
  Misses       1275     1275              
  Partials      309      309              
Impacted Files Coverage Δ
internal/artifact/artifact.go 85.37% <100.00%> (+0.46%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant