Github action build fails at "Move jars"

As titled, here the error

  Run mkdir shadowJars && mv */build/libs/imgui-*.jar shadowJars
  mkdir shadowJars && mv */build/libs/imgui-*.jar shadowJars
  shell: /bin/bash -e {0}
    JAVA_HOME_11.0.8_x64: /opt/hostedtoolcache/jdk/11.0.8/x64
    JAVA_HOME: /opt/hostedtoolcache/jdk/11.0.8/x64
    JAVA_HOME_11_0_8_X64: /opt/hostedtoolcache/jdk/11.0.8/x64
mv: cannot stat '*/build/libs/imgui-*.jar': No such file or directory
Error: Process completed with exit code 1.

This is the folder content:


Either if it should not fail because there are actually matches for imgui-*.jar, I have no idea where this is specified.

Also, how can I fix this?

Thanks in advance

The content of which folder? The first asterisk in */build/libs/imgui-*.jar might match many folders, or none, which might be the problem here.

The folder where it does look for: /build/libs/

Then that’s indeed the problem. */build/libs/imgui-*.ja would only match if your JARs were in directories with another leading directory, e.g. abc/build/libs/ or xyz/build/libs/. Try:

mv build/libs/imgui-*.jar shadowJars/
1 Like

Uh, I got it now what you meant… thanks dude!

You’re welcome, but there’s no dude here. :wink:

Dudine then :slight_smile:

(I just discovered it, I didn’t know that)