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

chore(internal/gapicgen): fix dockerfile build #7455

Merged
merged 1 commit into from
Feb 17, 2023

Conversation

codyoss
Copy link
Member

@codyoss codyoss commented Feb 17, 2023

With the release of 1.20 golang no longer ships a bunch of stuff pre-compiled, see: https://tip.golang.org/doc/go1.20

This seems to mean non-glibc distros like alpine are harder to use Go with. From what I am seeing you basically need to build from source. That is a decent number of steps to get all the deps right so lets copy the go binary from the offical image for now. Was getting the error: Error loading shared library libresolv.so.2

With the release of 1.20 golang no longer ships a bunch of stuff
pre-compiled, see: https://tip.golang.org/doc/go1.20

This seems to mean non-glibc distros like alpine are harder to use
Go with. From what I am seeing you basically need to build from
source. That is a decent number of steps to get all the deps right
so lets copy the go binary from the offical image for now. Was
getting the error: Error loading shared library libresolv.so.2
@codyoss codyoss requested a review from a team as a code owner February 17, 2023 19:24
@product-auto-label product-auto-label bot added the size: xs Pull request size is extra small. label Feb 17, 2023
@codyoss codyoss added the automerge Merge the pull request once unit tests and other checks pass. label Feb 17, 2023
Copy link
Member

@quartzmo quartzmo left a comment

Choose a reason for hiding this comment

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

Bravo.

@gcf-merge-on-green gcf-merge-on-green bot merged commit cf85910 into googleapis:main Feb 17, 2023
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label Feb 17, 2023
@codyoss codyoss deleted the copy-bin branch February 17, 2023 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: xs Pull request size is extra small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants