-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
KPM fails to install SNAPSHOT version of plugins from Github packages #276
Comments
I remember GitHub support for Maven being quite finicky and non standard... Are you able to pin point part of the code that needs updates? Try with |
Hi pierre, Thanks for the quick reply, and the debugging tips. From a quick glance at the code, I thought that kpm somehow used maven to download the artifact, which would resolve timestamped snapshots. Alas, this is not the case. The url for my snapshot artifacts is suffixed with a timestamp, which cannot be removed in maven 3 (see here). An example of the URL for my sha1 file: |
Right, we need the server to tell us the filename. This is what we do for other Maven repositories (e.g., Cloudsmith):
Does GitHub provide the SNAPSHOT filename in If you have an environment on GitHub with SNAPSHOT packages, it's quite easy to write an integration test for it to test things out, see #188 for an example. |
Here is what the maven-metadata.xml looks like: <metadata>
<groupId>com.company</groupId>
<artifactId>hello-world-plugin</artifactId>
<versioning>
<latest>2.0.1</latest>
<versions>
<version>2.0.1-SNAPSHOT</version>
<version>2.0.1</version>
</versions>
<lastUpdated>20240422151152</lastUpdated>
</versioning>
</metadata> |
Is this for If so, it looks like we'll need to manipulate a bit the metadata to construct the filename... Is your company able to provide a patch? If not, we'll add it to our backlog (not sure when we'll get to it though). |
Yes, sorry, bad copy/paste/obfuscation on my part.
I would love to, however I do not know ruby at all, and do not have time to invest in this, sadly.
Totally understand, I also maintain OSS in my free time, and know that resources are at a premium. If/when I am able to contribute, do I need to do anything aside from sending a PR with code update + test? Fwiw, it is looking like we may need to investigate the nuances of Github's packages a bit more; I am thinking that Edit: I can confirm that |
💙 Feel free to reach out at pierre@ if your company wants to explore sponsoring options.
That's it! 😄
Yeah, I vaguely remember that GitHub support was hard to implement... Let us know if you can engage GitHub support (if you have access to it at your company). |
Hi team, we are using kpm to install our plugins from a private Github repo's packages. We have no issue installing release versions, like so:
result:
However, when we try with a SNAPSHOT version:
This is the result:
I can confirm that this package does indeed exist, and can fetch it via
curl
, so it is not a connectivity or missing package issue. Please let me know if I can provide any additional details.Related code:
The text was updated successfully, but these errors were encountered: