Skip to content

fix: always create the workspace runfiles directory in the fallback tar#7

Merged
pcj merged 1 commit into
mainfrom
fix/ensure-dirs
Jul 21, 2026
Merged

fix: always create the workspace runfiles directory in the fallback tar#7
pcj merged 1 commit into
mainfrom
fix/ensure-dirs

Conversation

@pcj

@pcj pcj commented Jul 21, 2026

Copy link
Copy Markdown
Member

Consumers set the image WorkingDir to /app/ so that runfiles-relative jvm_flags resolve, but the directory was only created when data runfiles existed. OCI runtimes fail chdir on a missing working directory, so images without data runfiles failed at container start.

Add a repeatable --ensure_dir flag to jar_layerer and pass app/<ctx.workspace_name> from the rule unconditionally.

Consumers set the image WorkingDir to /app/<workspace> so that
runfiles-relative jvm_flags resolve, but the directory was only created
when data runfiles existed. OCI runtimes fail chdir on a missing working
directory, so images without data runfiles failed at container start.

Add a repeatable --ensure_dir flag to jar_layerer and pass
app/<ctx.workspace_name> from the rule unconditionally.
@pcj
pcj merged commit 65a3f65 into main Jul 21, 2026
1 check passed
@pcj
pcj deleted the fix/ensure-dirs branch July 21, 2026 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant