Skip to content

Conversation

nickrolfe
Copy link
Contributor

@nickrolfe nickrolfe commented Sep 15, 2025

Follow-up to #3107 so that we don't bother setting the extractor flag when dependency caching is disabled, since the feature has a performance cost.

In the long term — when we remove the feature flag and enable it permanently — we'll want to come up with a more language-agnostic solution for this.

@nickrolfe nickrolfe force-pushed the nickrolfe/minimize-jars-followup branch from 8b2db72 to 4014b75 Compare September 15, 2025 14:11
@nickrolfe nickrolfe marked this pull request as ready for review September 15, 2025 15:40
@nickrolfe nickrolfe requested a review from a team as a code owner September 15, 2025 15:40
@Copilot Copilot AI review requested due to automatic review settings September 15, 2025 15:40
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refines the Java dependency minimization feature to only enable it when dependency caching is active, avoiding unnecessary performance overhead when caching is disabled.

  • Adds an additional condition to check if dependency caching is enabled before setting the Java extractor environment variable
  • Updates the comment to clarify the reasoning behind this optimization

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/init-action.ts Adds dependency caching check to Java jar minimization logic and updates explanatory comment
lib/init-action.js Generated JavaScript output (not reviewed per guidelines)

@mbg mbg enabled auto-merge September 15, 2025 15:41
@mbg mbg merged commit 9e5383b into main Sep 15, 2025
578 of 579 checks passed
@mbg mbg deleted the nickrolfe/minimize-jars-followup branch September 15, 2025 15:57
@github-actions github-actions bot mentioned this pull request Sep 25, 2025
8 tasks
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.

2 participants