Skip to content

Commit

Permalink
aanpassing java versie en cache
Browse files Browse the repository at this point in the history
  • Loading branch information
julianl890 committed May 26, 2024
1 parent 0ef431c commit b76dfc8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 7 additions & 7 deletions java/prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b76dfc8

Please sign in to comment.