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: Prevent duplicate folders from being created. #411

Merged
merged 2 commits into from
Dec 1, 2021

Conversation

rtpt-erikgeiser
Copy link
Contributor

Currently a package can contain duplicate folders depending on the way a user specified a dir-type content destination (folder name). This PR fixes that by keeping track of created folders in the already existing created map with a consistent naming convention. It also adds related tests.

Another bug that's also fixed by this PR is that auto-created folders did not have a owner username and group name.

@pull-request-size pull-request-size bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Dec 1, 2021
@vercel vercel bot temporarily deployed to Preview December 1, 2021 11:49 Inactive
@codecov
Copy link

codecov bot commented Dec 1, 2021

Codecov Report

Merging #411 (86d469c) into main (9570f52) will increase coverage by 0.48%.
The diff coverage is 86.20%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #411      +/-   ##
==========================================
+ Coverage   66.19%   66.68%   +0.48%     
==========================================
  Files          15       15              
  Lines        1855     1876      +21     
==========================================
+ Hits         1228     1251      +23     
+ Misses        488      487       -1     
+ Partials      139      138       -1     
Impacted Files Coverage Δ
files/files.go 88.46% <20.00%> (-2.88%) ⬇️
apk/apk.go 72.70% <100.00%> (+0.89%) ⬆️
deb/deb.go 70.60% <100.00%> (+1.69%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9570f52...86d469c. Read the comment docs.

@vercel vercel bot temporarily deployed to Preview December 1, 2021 11:57 Inactive
@caarlos0 caarlos0 added this to the 2.11.0 milestone Dec 1, 2021
Copy link
Contributor

@djgilcrease djgilcrease left a comment

Choose a reason for hiding this comment

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

Lgtm

@caarlos0 caarlos0 merged commit e959f1d into goreleaser:main Dec 1, 2021
@caarlos0
Copy link
Member

caarlos0 commented Dec 1, 2021

good catch, thanks!

@caarlos0 caarlos0 added the bug Something isn't working label Dec 1, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants