Skip to content

dockerfile: check statically linked#3639

Closed
crazy-max wants to merge 1 commit intodistribution:mainfrom
crazy-max:static-check
Closed

dockerfile: check statically linked#3639
crazy-max wants to merge 1 commit intodistribution:mainfrom
crazy-max:static-check

Conversation

@crazy-max
Copy link
Contributor

Makes sure binary is statically linked and also adds -trimpath build flag.

cc @milosgajdos

Signed-off-by: CrazyMax [email protected]

--files="LICENSE" \
--files="README.md"
--files="README.md" \
&& xx-verify --static /usr/local/bin/registry
Copy link
Member

Choose a reason for hiding this comment

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

Out of curiosity; Do we need both xx and goreleaser-xx ? Where do they overlap, and where are the gaps between the two?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes there is no static check in goreleaser-xx atm but I could add it or we could switch to xx but would need a dedicated stage to create tarballs which seems fine if we want to.

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, mostly it feels like there's a large overlap between the two, so it possible, it would be nice to "pick one" (I'm impartial to "which one", as long as (if possible) it's "one" 😅

@crazy-max crazy-max marked this pull request as draft May 3, 2022 18:10
@crazy-max crazy-max closed this May 4, 2022
@crazy-max crazy-max deleted the static-check branch May 4, 2022 09:11
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