From 2a280afb02e7844f9287aacc261c3465029f10dc Mon Sep 17 00:00:00 2001 From: Emil Kattainen Date: Wed, 22 Jul 2020 17:06:24 +0300 Subject: [PATCH] Change image rule to copy config instead of symlink The image rule in container/image.bzl was symlinking the config file for strutcture tests. This caused remote execution with --remote_download_minimal to fail as symlinks aren't yet supported. --- container/image.bzl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/container/image.bzl b/container/image.bzl index 336c923b8..bd542bbc3 100644 --- a/container/image.bzl +++ b/container/image.bzl @@ -506,12 +506,11 @@ def _impl( ) _assemble_image_digest(ctx, name, container_parts, output_tarball, output_digest) - # Symlink config file for usage in structure tests - ln_path = config_file.path.split("/")[-1] + # Copy config file for usage in structure tests ctx.actions.run_shell( outputs = [output_config], inputs = [config_file], - command = "ln -s %s %s" % (ln_path, output_config.path), + command = "cp %s %s" % (config_file.path, output_config.path), ) runfiles = ctx.runfiles(