Skip to content

Commit

Permalink
fix(jlink_plugin): remove extra slash from INSTALL_ROOT
Browse files Browse the repository at this point in the history
  • Loading branch information
vpa1977 committed Sep 9, 2024
1 parent 4d478cc commit 5fbea13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rockcraft/plugins/jlink_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def get_build_commands(self) -> list[str]:
java_home = (
"usr/lib/jvm/java-"
+ str(options.jlink_java_version)
+ "-openjdk-${CRAFT_TARGET_ARCH}/"
+ "-openjdk-${CRAFT_TARGET_ARCH}"
)

if len(options.jlink_jars) > 0:
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/plugins/test_jlink_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def test_get_build_commands(self, setup_method_fixture, new_dir, version):
assert (
"INSTALL_ROOT=${CRAFT_PART_INSTALL}/usr/lib/jvm/java-"
+ version
+ "-openjdk-${CRAFT_TARGET_ARCH}/"
+ "-openjdk-${CRAFT_TARGET_ARCH}"
in commands
)
assert (
Expand Down

0 comments on commit 5fbea13

Please sign in to comment.