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 cannot find image tar with bazel symlinks disabled #7600

Closed
arjantop-cai opened this issue Jun 28, 2022 · 0 comments · Fixed by #7671
Closed

Skaffold cannot find image tar with bazel symlinks disabled #7600

arjantop-cai opened this issue Jun 28, 2022 · 0 comments · Fixed by #7671
Labels
area/build build/bazel kind/bug Something isn't working priority/p2 May take a couple of releases

Comments

@arjantop-cai
Copy link

Expected behavior

Skaffold uses the absolute path to the image tar

Actual behavior

Skaffold fails to find the image because a relative path is used bu bazel is run with build --symlink_prefix=/ which does not create the symlinks.

failed: reading image "bazel-out/darwin_arm64-fastbuild/bin/some_image.tar": open bazel-out/darwin_arm64-fastbuild/bin/some_image.tar: no such file or directory

Information

  • Skaffold version: v1.38.0
  • Operating system: MacOS 12.3.1
  • Installed via: Homebrew

Steps to reproduce the behavior

  1. Skaffold project with bazel image build
  2. Add build --symlink_prefix=/ to .bazelrc
  3. Run skaffold
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/build build/bazel kind/bug Something isn't working priority/p2 May take a couple of releases
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants