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: build breaking on windows 386 #2938

Merged
merged 1 commit into from Feb 25, 2022
Merged

fix: build breaking on windows 386 #2938

merged 1 commit into from Feb 25, 2022

Conversation

caarlos0
Copy link
Member

@caarlos0 caarlos0 commented Feb 25, 2022

For some reason the set lib was trowing an int overflow error on snapshot when there are no binary artifacts to sign.

This list is small, we don't need to worry about allocations et al, so I just switched it for a map for now, which seems to fix the issue...

cc @wagoodman

Refs #2839
See https://github.com/goreleaser/goreleaser/runs/5334854323?check_suite_focus=true#step:21:50

For some reason the set lib was trowing an int overflow  error on snapshot
when there are no binary artifacts to sign.

Refs  #2839
See https://github.com/goreleaser/goreleaser/runs/5334854323?check_suite_focus=true#step:21:50

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
@caarlos0 caarlos0 self-assigned this Feb 25, 2022
@pull-request-size pull-request-size bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Feb 25, 2022
@vercel vercel bot temporarily deployed to Preview February 25, 2022 16:58 Inactive
@caarlos0 caarlos0 added the bug Something isn't working label Feb 25, 2022
@codecov
Copy link

codecov bot commented Feb 25, 2022

Codecov Report

Merging #2938 (434248b) into main (c845063) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2938   +/-   ##
=======================================
  Coverage   84.42%   84.42%           
=======================================
  Files         111      111           
  Lines        8974     8975    +1     
=======================================
+ Hits         7576     7577    +1     
  Misses       1124     1124           
  Partials      274      274           
Impacted Files Coverage Δ
internal/artifact/artifact.go 98.03% <100.00%> (+<0.01%) ⬆️

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 c845063...434248b. Read the comment docs.

@wagoodman
Copy link
Contributor

curious! I've never seen an issue like that with strset. Nice / quick fix!

@caarlos0 caarlos0 marked this pull request as ready for review February 25, 2022 17:46
Copy link
Contributor

@wagoodman wagoodman left a comment

Choose a reason for hiding this comment

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

good fix (though my weight is +0 😎 )

@caarlos0 caarlos0 changed the title fix: release breaking when archive only fix: build breaking on windows 386 Feb 25, 2022
@caarlos0 caarlos0 merged commit a5a1abc into main Feb 25, 2022
@caarlos0 caarlos0 deleted the set branch February 25, 2022 18:01
@github-actions github-actions bot added this to the v1.6.0 milestone Feb 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants