Skip to content

Output JAR is not hermetic #205

Closed
@jpgxs

Description

@jpgxs
  • Bazel Version: 6.5.0
  • rules_spring Version: 2.3.2

Spring JARs produced by the springboot rule are not hermetic due to the build.target in build-data.properties, which has an absolute path:

build.target=/private/var/tmp/_bazel_jgriffiths/32484cc4b1bfa781e862ec83fd283f30/sandbox/darwin-sandbox/7418/execroot/my_workspace/bazel-out/darwin_arm64-fastbuild/bin/app.jar

I've compared this to the *_deploy.jar produced by java_binary which uses a relative path:

build.target=bazel-out/darwin_arm64-fastbuild/bin/app_deploy.jar

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    To do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions