diff --git a/.github/workflows/java.yml b/.github/workflows/java.yml index 4b9f71c..a6b74d5 100644 --- a/.github/workflows/java.yml +++ b/.github/workflows/java.yml @@ -27,6 +27,13 @@ jobs: # - 21 - all steps: + + - uses: actions/cache@v2 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} + restore-keys: | + ${{ runner.os }}-pip- - uses: actions/checkout@v4 - uses: docker/setup-qemu-action@v3 - uses: docker/setup-buildx-action@v3 diff --git a/java/prompt.py b/java/prompt.py index ebaa961..49ee5a8 100644 --- a/java/prompt.py +++ b/java/prompt.py @@ -86,13 +86,13 @@ def getPaperRecommendedVersion(zip): return "Java 8" def getJavaName(zip): - try: - paper_recommended = getPaperRecommendedVersion(zip) - if paper_recommended: - logging.debug(f"Detected Paper recommended version: {paper_recommended}") - return paper_recommended - except Exception as e: - logging.error(f"Error detecting Paper recommended version: {e}") + # try: + # paper_recommended = getPaperRecommendedVersion(zip) + # if paper_recommended: + # logging.debug(f"Detected Paper recommended version: {paper_recommended}") + # return paper_recommended + # except Exception as e: + # logging.error(f"Error detecting Paper recommended version: {e}") try: major_version = getJavaVersion(zip)