Skip to content

fix(Dockerfile): extract artifacts from tarball when using GoReleaser#2032

Merged
xushiwei merged 1 commit into
goplus:mainfrom
aofei:Dockerfile
Dec 10, 2024
Merged

fix(Dockerfile): extract artifacts from tarball when using GoReleaser#2032
xushiwei merged 1 commit into
goplus:mainfrom
aofei:Dockerfile

Conversation

@aofei
Copy link
Copy Markdown
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

@codecov
Copy link
Copy Markdown

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
Copy Markdown
Member Author

aofei commented Dec 8, 2024

/cc @cpunion

Copy link
Copy Markdown
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
@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