Skip to content

Conversation

@seshubaws
Copy link
Contributor

Which issue(s) does this change fix?

Why is this change necessary?

Gradle 9 (which Java25 uses) requires the addition of the --mount-with WRITE flag.

How does it address the issue?

What side effects does this change have?

Mandatory Checklist

PRs will only be reviewed after checklist is complete

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@seshubaws seshubaws requested a review from a team as a code owner January 15, 2026 22:08
@seshubaws
Copy link
Contributor Author

reedham-aws
reedham-aws previously approved these changes Jan 15, 2026

overrides = self.get_override(runtime, code_path, architecture, "aws.example.Hello::myHandler")
cmdlist = self.get_command_list(use_container=use_container, parameter_overrides=overrides)
mount_with = MountMode.WRITE if use_container and str(runtime).lower() == "java25" else None
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I remember correctly, in practice we need mount-with-write only for the Gradle tests. Is it possible to add this only for those?

Copy link
Contributor Author

@seshubaws seshubaws Jan 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yup that's what I'm adding now since I noticed the maven tests failing that weren't failing before. new integ test run https://github.com/aws/aws-sam-cli/actions/runs/21051712748

@seshubaws seshubaws added this pull request to the merge queue Jan 16, 2026
Merged via the queue into develop with commit 1edba25 Jan 16, 2026
66 of 73 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants