Skip to content

Commit

Permalink
Merge pull request #2 from chrismgrayftsinc/fix-spring-components-for…
Browse files Browse the repository at this point in the history
…-mac

Fix spring.components for mac
  • Loading branch information
chrismgrayftsinc authored Apr 13, 2023
2 parents 3d8cf78 + 5c91a78 commit c5e7bb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spring_image.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def tar_jars(ctx, files, out):
outputs = [out],
# Create an empty tarball, then extract all the jars and append the contents into it.
# TODO: get rid of the hardcoded bazel-out path in the first transform.
command = 'tar cf {out} -T /dev/null && if [ -s {scf} ]; then tar rhf {out} --transform "s,bazel-out/k8-fastbuild/bin/,BOOT-INF/classes/META-INF/," {scf}; fi && for i in {all_paths}; do {jar} xf $i && {jar} tf $i | tar rf {out} --transform "s,^,BOOT-INF/classes/," -T -; done'.format(out = out.path, all_paths = " ".join(paths), jar = jar_path, scf = spring_components_file.path),
command = 'tar cf {out} -T /dev/null && if [ -s {scf} ]; then tar rhf {out} --transform "s,bazel-out/.*/bin/,BOOT-INF/classes/META-INF/," {scf}; fi && for i in {all_paths}; do {jar} xf $i && {jar} tf $i | tar rf {out} --transform "s,^,BOOT-INF/classes/," -T -; done'.format(out = out.path, all_paths = " ".join(paths), jar = jar_path, scf = spring_components_file.path),
)

def _application_copier_rule_impl(ctx):
Expand Down

0 comments on commit c5e7bb8

Please sign in to comment.