-
-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add apache/maven-mvnd #20468
feat: add apache/maven-mvnd #20468
Conversation
Thank you! |
pkgs/apache/maven-mvnd/registry.yaml
Outdated
files: | ||
- name: mvnd | ||
src: maven-mvnd-{{.Version}}-m39-{{.OS}}-{{.Arch}}/bin/mvnd | ||
version_constraint: semver(">= 1.0.0-m6") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems you didn't follow the guide.
https://aquaproj.github.io/docs/products/aqua-registry/contributing#how-to-add-a-package
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right. I tried to follow it but it didn't work for me. Probably it's because I use Fedora and only Podman (not Docker) is available. Here is what I got when running cmdx s <package>
:
INFO[0000] create a symbolic link aqua_version=2.23.1 command=aqua-proxy env=linux/amd64 package_name=aqua-proxy package_version=v1.2.5 program=aqua registry=
+ opts=
+ '[' -n '' ']'
+ '[' -n '' ']'
+ docker exec -ti -w /aqua-registry aqua-registry aqua-registry scaffold apache/maven-mvnd
Error: crun: executable file `aqua-registry` not found in $PATH: No such file or directory: OCI runtime attempted to invoke a command that was not found
exit status 127
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I see. Thank you for your explanation.
Maybe this issue is related, though I couldn't reproduce the issue.
[apache/maven-mvnd](https://github.com/apache/maven-mvnd): Apache Maven Daemon
@suzuki-shunsuke Thanks for fixing my pull req! Now it's failing to install older versions such as 0.8.1, 0.7.1, and 0.0.2. It appears aqua has some issue with unarchiving |
Please don't do force pushes after opening pull requests from the next time. |
Hmm. The local test succeeded but CI failed. |
Hmm. 🤔 I'm not sure why but it seems the zip file is empty.
On my laptop, the zip file is unarchived correctly. root@91361fb1e506:/workspace# ls /root/aquaproj-aqua/pkgs/github_release/github.com/apache/maven-mvnd/0.8.1/maven-mvnd-0.8.1-linux-amd64.zip/maven-mvnd-0.8.1-linux-amd64/bin/mvnd
/root/aquaproj-aqua/pkgs/github_release/github.com/apache/maven-mvnd/0.8.1/maven-mvnd-0.8.1-linux-amd64.zip/maven-mvnd-0.8.1-linux-amd64/bin/mvnd |
As a workaround I think we can:
as it doesn't make much sense to keep using older versions for But, as it might also suggest some potential issue with aqua around unarchiving zips, so it's more than happy if you're interested in looking into the issue more :-) |
Just FYI, on my local laptop (Fedora 39), 0.8.1 fails in the same way it fails to install on the github action (ubuntu-latest):
The zip also fails to expand locally for me:
|
This log is weird.
This log shown README.adoc existed in the zip but the following log shown the zip file was empty.
|
As a workaround, we would be able to remove some versions from pkg.yaml. |
@suzuki-shunsuke No worries. Thank you for looking into it, Suzuki-san! Take a good rest! |
aqua uses mholt/archiver/v3 (v3.5.1). https://github.com/aquaproj/aqua/blob/65fb59915fced5e16413e59cd17b3f0a1b42b972/go.mod#L18 We haven't changed the version of mholt/archiver for over two years. https://github.com/aquaproj/aqua/blame/v2.23.1/go.mod#L18 https://pkg.go.dev/github.com/mholt/archiver/v3#Zip.Unarchive |
About the above issue, I created an issue. |
v4.147.0 is out 🎉 |
apache/maven-mvnd: Apache Maven Daemon
aqua g -i apache/maven-mvnd
To test (requires Java and Maven to be installed):