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(Dockerfile): extract artifacts from tarball when using GoReleaser #2032

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

aofei
Copy link
Member

@aofei aofei commented Dec 8, 2024

According to GoReleaser docs, the directory names inside dist have no guarantee of remaining the same across different GoReleaser versions1. Therefore, we extract from tarballs instead of using those directories directly.

Footnotes

  1. https://goreleaser.com/customization/builds/#a-note-about-directory-names-inside-dist

Copy link

codecov bot commented Dec 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.34%. Comparing base (e399e52) to head (396ed46).
Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2032   +/-   ##
=======================================
  Coverage   93.34%   93.34%           
=======================================
  Files          42       42           
  Lines       11734    11734           
=======================================
  Hits        10953    10953           
  Misses        624      624           
  Partials      157      157           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

According to GoReleaser docs, the directory names inside dist have no
guarantee of remaining the same across different GoReleaser
versions[^1]. Therefore, we extract from tarballs instead of using those
directories directly.

[^1]: https://goreleaser.com/customization/builds/#a-note-about-directory-names-inside-dist

Signed-off-by: Aofei Sheng <aofei@aofeisheng.com>
@aofei aofei changed the title fix(Dockerfile): extract binaries from tarball when using GoReleaser artifacts fix(Dockerfile): extract artifacts from tarball when using GoReleaser Dec 8, 2024
@aofei
Copy link
Member Author

aofei commented Dec 8, 2024

/cc @cpunion

Copy link
Contributor

@cpunion cpunion left a comment

Choose a reason for hiding this comment

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

Tested.

@xushiwei xushiwei merged commit 84b467d into goplus:main Dec 10, 2024
12 checks passed
@aofei aofei deleted the Dockerfile branch December 10, 2024 11:18
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.

3 participants