Github Package snapshot build number not updating #24658
-
When I publish new versions of a SNAPSHOT build to github packages, the build number is not updated.
I think this is causing gradle to always download build-number 1, and any later snapshots are ignored. |
Beta Was this translation helpful? Give feedback.
Replies: 16 comments
-
Hey @derongan, as far as I know we don’t support mutating packages in terms of publishing a new SNAPSHOT to override an existing SNAPSHOT. |
Beta Was this translation helpful? Give feedback.
-
@andreagriffiths11 Just to clarify, does this mean that we cannot upload multiple builds for the same snapshot (e.g. 1.0.0-SNAPSHOT) and have GitHub serve the latest artifact? Encountering a similar issue at the moment where only the first build is being pulled down from the repository (even after deleting my local cache). |
Beta Was this translation helpful? Give feedback.
-
We do have partial support for SNAPSHOT versions. You can push snapshot packages that contain plain .jar and .pom files. There is however a bug that stops it working with -javadoc and -source artifacts. This is somethign to be aware of because it trips up lots of people! Hopefully this will be fixed soon. |
Beta Was this translation helpful? Give feedback.
-
Hi, we publish snapshot packages with Gradle, it’s a plain .pom and .jar files. But unfortunately when we try to use snapshot package only first uploaded jar is downloaded. Also did try to publish packages with new Gradle module metadata files - and it’s the same, only first uploaded jar is downloaded. Do you know when snapshots will work in GitHub Packages ? thank you |
Beta Was this translation helpful? Give feedback.
-
@derongan did you resolve you problem ? thank you |
Beta Was this translation helpful? Give feedback.
-
Could you open a ticket here with a link to your repository any logs for publishing/consuming your package? https://support.github.com/contact Thanks, Jamie. |
Beta Was this translation helpful? Give feedback.
-
Currently experiencing the same issue on a Gradle project, for some reason when multiple snapshots of the same version are uploaded (e.g. 1.0.0-SNAPSHOT), even when the cache for changing modules is disabled - explicitly set it to 0 seconds - GH Packages always returns the first artifact. I thought it was a Gradle misconfiguration I made at first, but I can see in the logs that the resolved pom file is the one belonging to the first upload and any other dependency pulled from other Maven repos (not GH packages ones) with the same cache policy is always the latest. Any chance this can get fixed? Thanks! |
Beta Was this translation helpful? Give feedback.
-
I opened a support ticket and got a confirmation today that the GH team is currently looking into the issue of the SNAPSHOT always returning the first version. I’ll post here again when I get updates. |
Beta Was this translation helpful? Give feedback.
-
Thanks for opening the ticket. A new version was deployed earlier today. This issue should now be fixed! |
Beta Was this translation helpful? Give feedback.
-
Works great now, thanks again! |
Beta Was this translation helpful? Give feedback.
-
Having the same problem here. Trying to publish a 0.0.1-SNAPSHOT artifact with Gradle. No error on the publishing side, but there’s no trace of the most recent artifact on GitHub. How do I solve this please? |
Beta Was this translation helpful? Give feedback.
-
Have the same problem here. Is this getting solved any time soon? |
Beta Was this translation helpful? Give feedback.
-
Still having the same issue, really frustrating as snapshots are really important for our development environment. I hope we hear back from the staff soon, switching back to our old repo in the meanwhile. |
Beta Was this translation helpful? Give feedback.
-
Yes, we had to move to Artifactory for that reason, which is a shame. |
Beta Was this translation helpful? Give feedback.
-
Same here. First I thought it was a mistake from my side, but after a couple of hours debugging it I can confirm the SNAPSHOT version is uploaded to Github Packages successfully but I can’t find it there or fetch the latest version. |
Beta Was this translation helpful? Give feedback.
-
I managed to get it to work. A Maven project is publishing the package and I can see the new SNAPSHOT version on the GitHub package page under the Assets listing. The timestamps on the GitHub repo do not seem to change, which is a bit weird. A Gradle project is importing the SNAPSHOT package, but do ensure that Gradle is not caching changing dependencies. Otherwise it might not download the latest version (even if you build with
|
Beta Was this translation helpful? Give feedback.
We do have partial support for SNAPSHOT versions. You can push snapshot packages that contain plain .jar and .pom files. There is however a bug that stops it working with -javadoc and -source artifacts. This is somethign to be aware of because it trips up lots of people! Hopefully this will be fixed soon.