Skip to content

Dockerfile: switch to xx#3641

Merged
milosgajdos merged 1 commit intodistribution:mainfrom
crazy-max:use-xx
May 4, 2022
Merged

Dockerfile: switch to xx#3641
milosgajdos merged 1 commit intodistribution:mainfrom
crazy-max:use-xx

Conversation

@crazy-max
Copy link
Contributor

follow-up #3639 (comment)

replace goreleaser-xx with xx. this adds a bit more logic to package and handle versioning that was carried by goreleaser-xx before but at least we only rely on go tooling to build.

cc @milosgajdos @thaJeztah

Signed-off-by: CrazyMax [email protected]

@codecov-commenter
Copy link

Codecov Report

Merging #3641 (87f93ed) into main (edf5aa3) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #3641   +/-   ##
=======================================
  Coverage   56.58%   56.58%           
=======================================
  Files         103      103           
  Lines        7520     7520           
=======================================
  Hits         4255     4255           
  Misses       2596     2596           
  Partials      669      669           

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 edf5aa3...87f93ed. Read the comment docs.

Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines +17 to +18
VERSION=$(git describe --match 'v[0-9]*' --dirty='.m' --always --tags) REVISION=$(git rev-parse HEAD)$(if ! git diff --no-ext-diff --quiet --exit-code; then echo .m; fi); \
echo "-X ${PKG}/version.Version=${VERSION#v} -X ${PKG}/version.Revision=${REVISION} -X ${PKG}/version.Package=${PKG}" | tee /tmp/.ldflags; \
Copy link
Member

Choose a reason for hiding this comment

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

I guess we can start using some of Go's built-in features for the git commit now (not for this PR!)

Copy link
Member

Choose a reason for hiding this comment

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

isn't that only possible from 1.18 on?

@milosgajdos milosgajdos merged commit 7846381 into distribution:main May 4, 2022
@crazy-max crazy-max deleted the use-xx branch May 4, 2022 09:10
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.

5 participants