Thanks to visit codestin.com
Credit goes to github.com

Skip to content

.bazelversion symlinks in tarballs incompatible with bazelbuild/bazel@f942a70 #21

@mbland

Description

@mbland

Per bazel-contrib/rules_scala#1801 (comment), last_green Bazel builds now raise an error on bazel-worker-api distributions due to bazelbuild/bazel@f942a70, specifically in CompressedTarFunction.decompress():

ERROR: external/bazel_tools/tools/build_defs/repo/http.bzl:200:45:
  An error occurred during the fetch of repository 'bazel_worker_api+':
   Traceback (most recent call last):
  File "external/bazel_tools/tools/build_defs/repo/http.bzl", line 200, column 45, in _http_archive_impl
    download_info = ctx.download_and_extract(

Error in download_and_extract: java.io.IOException: Error extracting 
  external/bazel_worker_api+/temp14899518384317211070/bazel-worker-api-v0.0.6.tar.gz
  to
  external/bazel_worker_api+/temp14899518384317211070:
Tar entries cannot refer to files outside of their directory:
  external/bazel_worker_api+/temp14899518384317211070/bazel-worker-api-v0.0.6.tar.gz
  has a link bazel-worker-api-0.0.6/proto/.bazelversion pointing to
  ../.bazelversion

I'm happy to send a PR to convert these to text files, unless anyone has a better idea.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions