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

Skaffold not working anymore on Alpine Linux with v0.31.0 release #2243

Closed
math-nao opened this issue Jun 9, 2019 · 5 comments · Fixed by #2252
Closed

Skaffold not working anymore on Alpine Linux with v0.31.0 release #2243

math-nao opened this issue Jun 9, 2019 · 5 comments · Fixed by #2252
Labels
kind/bug Something isn't working

Comments

@math-nao
Copy link

math-nao commented Jun 9, 2019

Expected behavior

Skaffold v0.31.0 commands should work on Alpine Linux as it is working with Skaffold v0.30.0 and below.

Actual behavior

skaffold: not found

Information

  • Skaffold version: v0.31.0
  • Operating system: Alpine Linux v3.9
  • Contents of skaffold.yaml: N/A

Steps to reproduce the behavior

  1. docker run --rm -it alpine:3.9
  2. This should return an error: apk add --no-cache curl && curl -Lo skaffold https://storage.googleapis.com/skaffold/releases/v0.31.0/skaffold-linux-amd64 && chmod +x skaffold && mv skaffold /usr/local/bin && skaffold -h
  3. Previous command for v0.30.0 and below is working
@math-nao math-nao changed the title Skaffold v0.31.0 not working anymore on Alpine Linux Skaffold not working anymore on Alpine Linux with v0.31.0 release Jun 9, 2019
@priyawadhwa priyawadhwa added the kind/bug Something isn't working label Jun 10, 2019
@briandealwis
Copy link
Member

Maybe from #2006?

@priyawadhwa
Copy link
Contributor

@dgageot do you think this could be related to the CGO change that was merged in this release?

@dgageot
Copy link
Contributor

dgageot commented Jun 10, 2019

@priyawadhwa yes, I'm pretty sure it's due to the CGO thing.

@dgageot
Copy link
Contributor

dgageot commented Jun 10, 2019

ldd skaffold
	/lib64/ld-linux-x86-64.so.2 (0x7f4eb0471000)
	libpthread.so.0 => /lib64/ld-linux-x86-64.so.2 (0x7f4eb0471000)
	libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7f4eb0471000)
Error relocating skaffold: __vfprintf_chk: symbol not found
Error relocating skaffold: __fprintf_chk: symbol not found

Maybe there are options to make sure it's statically compiled.

@dgageot
Copy link
Contributor

dgageot commented Jun 10, 2019

It looks like we are missing -ldflags '-extldflags "-static"'. The Makefile has GO_LDFLAGS += -extldflags \"${LDFLAGS}\" but LDFLAGS is not configured...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants