Skip to content

Fails to compile out of the box (path to AcceleratedRaycasting-0.0.1-dev.jar is absolute) #2

@onehittoaster

Description

@onehittoaster

OS: Gentoo Linux

$ uname -vripm
6.12.16-gentoo-x86_64 #1 SMP PREEMPT_DYNAMIC Thu Feb 27 15:42:41 PST 2025 x86_64 AMD Ryzen 9 5950X 16-Core Processor AuthenticAMD

$ java -version
openjdk version "17.0.13" 2024-10-15
OpenJDK Runtime Environment Temurin-17.0.13+11 (build 17.0.13+11)
OpenJDK 64-Bit Server VM Temurin-17.0.13+11 (build 17.0.13+11, mixed mode, sharing)

Steps to reproduce:

$ cd /tmp

$ git clone git@github.com:xiewuzhiying/Some-Peripherals.git

$ cd Some-Peripherals/

$ bash ./gradlew
(lots of output omitted, relevant output below)
Architect Plugin: 3.4.146
Architectury Loom: 1.3.355

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
A problem occurred configuring project ':common'.
> Failed to get file hash of /AcceleratedRaycasting-0.0.1-dev.jar

The file AcceleratedRaycasting-0.0.1-dev.jar exists:

$ ls -lion /tmp/Some-Peripherals/AcceleratedRaycasting-0.0.1-dev.jar 
20801 -rw-r--r-- 1 1000 39873 Mar  4 06:59 /tmp/Some-Peripherals/AcceleratedRaycasting-0.0.1-dev.jar

A clue might be the appearance of an absolute pathname in the error message /AcceleratedRaycasting-0.0.1-dev.jar

$ egrep AcceleratedRaycasting-0.0.1-dev.jar gradle.properties 
accelerated_raycasting_path=/AcceleratedRaycasting-0.0.1-dev.jar

Replacing the path with ./AcceleratedRaycasting-0.0.1-dev.jar and the compile succeeds.

I'll post a PR to fix this soon.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions