Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
Cannot upload conda package with same version but different build via CURL
-
Conda has the concept of package builds on top of package versions. I can image other package managers offer similar features. The idea is that you can build your package in different ways, linking it to different versions of binary libraries, for instance. You keep the same version because your source code is the same, but the build-string (conda generates a hash from your dependencies) differs, and you produce multiple packages.
This seems to work OK-ish now in ProGet. Using the manual upload in the WebGUI, I can upload a package with a version that is already on the server, but with a different build-number/string. But if I try this via CURL (and an API key), it does not work.
I uploaded some example files here:
https://nextcloud.marin.nl/index.php/s/7zBHSDx8QYLCzfJIf you create an empty feed, then first upload
proget-package-2023.8.0-1.tar.bz2
, that will work fine using either CURL or manual upload in the WebGUI. But if you then try to uploadproget-package-2023.8.0-3.tar.bz2
, it will work in the WebGUI but not via CURL. Via CURL, I get the error:The package win-64/proget-package.2023.8.0 already exists and the current user or service does not have the Feeds_OverwritePackage privilege.
I am using a feed API Key with CURL (so
--user api:API_KEY
) for which all permissions have been enabled. But there should be no message of 'overwriting' a package at all, because it is a different build.Thanks again for looking into this. If you need more information, I'm happy to help.
-
Thanks for the bug report! We will have this fixed in v2023.14 to be released on Friday. It's logged as PG-2446, and looks like a regression from some of the internal consolidation we did for ProGet 2023.
-Greg