Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add jmods into -dev variant. #2628

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

vaikas
Copy link
Contributor

@vaikas vaikas commented May 4, 2024

New Image Pull Request Template

Add jmods into -dev variant. Before this, if you tried to use jlink, you would get the following error message:

this runtime image does not contain jmods directory.

target_repository = var.target_repository
config = module.latest-config.config
build-dev = true
extra_dev_packages = each.key != "8" ? ["openjdk-${each.key}-jmods"] : []
Copy link
Member

Choose a reason for hiding this comment

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

Since this is always building the latest version, we don't need to take a versioned approach (or filter out OpenJDK 8):

Suggested change
extra_dev_packages = each.key != "8" ? ["openjdk-${each.key}-jmods"] : []
extra_dev_packages = ["openjdk-jmods"]

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I was just being silly. I can't figure out how to just use openjdk-mods and need to use openjdk-22-mods though.

Signed-off-by: Ville Aikas <vaikas@chainguard.dev>
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.

None yet

2 participants